home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-07-05 | 150.1 KB | [MMHS/MD93] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Tue Jul 5 08:00:00 1994, modified Tue Jul 5 08:00:00 1994, creator 'MD93', type 'MMHS', 153146 bytes "Director 4.0 Help Settings" , at 0x256ba 344 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
100%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [MMHS] |
macFileCreator | [MD93] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 1a 44 69 72 65 63 74 | 6f 72 20 34 2e 30 20 48 |..Direct|or 4.0 H|
|00000010| 65 6c 70 20 53 65 74 74 | 69 6e 67 73 00 00 00 00 |elp Sett|ings....|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4d 4d 48 53 4d 44 39 | 33 01 00 00 00 00 00 00 |.MMHSMD9|3.......|
|00000050| 00 00 00 00 02 56 3a 00 | 00 01 58 aa 3e fb c0 aa |.....V:.|..X.>...|
|00000060| 3e fb c0 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |>.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 e8 10 00 00 |........|........|
|00000080| 78 78 78 78 00 00 75 fc | 00 02 53 c0 00 00 08 b3 |xxxx..u.|..S.....|
|00000090| 00 00 00 01 00 02 55 88 | 00 00 00 00 00 00 00 00 |......U.|........|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 1a 00 22 00 00 02 41 | 00 00 00 b2 01 fb 00 00 |..."...A|........|
|000000d0| 00 00 00 00 00 08 00 00 | 03 2c 00 00 00 aa 00 00 |........|.,......|
|000000e0| 00 aa 00 44 00 ce 00 00 | 01 b8 78 70 72 65 73 73 |...D....|..xpress|
|000000f0| 69 6f 6e 20 32 20 2b 20 | 33 2e 20 0d 0d 70 75 74 |ion 2 + |3. ..put|
|00000100| 20 2d 28 32 20 2b 20 33 | 29 0d 0d 54 68 65 20 72 | -(2 + 3|)..The r|
|00000110| 65 73 75 6c 74 20 69 73 | 20 2d 35 2e 0d 0d 45 78 |esult is| -5...Ex|
|00000120| 61 6d 70 6c 65 20 32 20 | 28 73 00 00 00 00 00 44 |ample 2 |(s.....D|
|00000130| 00 ce 00 00 00 66 45 78 | 61 6d 70 6c 65 20 31 20 |.....fEx|ample 1 |
|00000140| 28 6e 65 67 61 74 69 6f | 6e 29 3a 0d 0d 54 68 69 |(negatio|n):..Thi|
|00000150| 73 20 73 74 61 74 65 6d | 65 6e 74 20 72 65 76 65 |s statem|ent reve|
|00000160| 72 73 65 73 20 74 68 65 | 20 73 69 67 6e 20 6f 66 |rses the| sign of|
|00000170| 20 74 68 65 20 65 00 00 | 00 00 00 1a 00 22 00 00 | the e..|....."..|
|00000180| 02 4e 00 00 01 20 00 5d | 00 00 00 44 00 00 00 02 |.N... .]|...D....|
|00000190| 00 00 01 64 00 00 01 18 | 00 00 00 00 00 44 00 ce |...d....|.....D..|
|000001a0| 00 00 01 6c 54 68 69 73 | 20 73 74 61 74 65 6d 65 |...lThis| stateme|
|000001b0| 6e 74 20 73 65 74 73 20 | 74 68 65 20 76 61 72 69 |nt sets |the vari|
|000001c0| 61 62 6c 65 20 6e 61 6d | 65 64 20 73 74 61 74 65 |able nam|ed state|
|000001d0| 20 74 6f 20 74 68 65 20 | 73 79 6d 62 6f 6c 20 23 | to the |symbol #|
|000001e0| 50 6c 61 79 00 00 01 18 | 00 44 00 ce ff ff ff ff |Play....|.D......|
|000001f0| 69 6e 67 3a 0d 0d 70 75 | 74 20 23 50 61 75 73 65 |ing:..pu|t #Pause|
|00000200| 64 20 69 6e 74 6f 20 73 | 74 61 74 65 0d 00 00 00 |d into s|tate....|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 5e 00 44 00 01 | 00 00 02 04 75 62 74 72 |...^.D..|....ubtr|
|00000240| 61 63 74 69 6f 6e 29 3a | 0d 0d 54 68 69 73 20 73 |action):|..This s|
|00000250| 74 61 74 65 6d 65 6e 74 | 20 73 75 62 74 72 61 63 |tatement| subtrac|
|00000260| 74 73 20 74 68 65 20 69 | 6e 74 65 67 65 72 20 32 |ts the i|nteger 2|
|00000270| 20 66 72 6f 6d 20 35 2c | 20 61 6e 64 00 00 01 b0 | from 5,| and....|
|00000280| 00 44 00 01 00 00 02 50 | 20 74 68 65 6e 20 64 69 |.D.....P| then di|
|00000290| 73 70 6c 61 79 73 20 74 | 68 65 20 72 65 73 75 6c |splays t|he resul|
|000002a0| 74 20 69 6e 20 74 68 65 | 20 6d 65 73 73 61 67 65 |t in the| message|
|000002b0| 20 77 69 6e 64 6f 77 3a | 0d 0d 70 75 74 20 35 20 | window:|..put 5 |
|000002c0| 2d 20 32 0d 0d 54 68 65 | 00 00 01 fc 00 44 00 01 |- 2..The|.....D..|
|000002d0| 00 00 02 9c 20 72 65 73 | 75 6c 74 20 69 73 20 33 |.... res|ult is 3|
|000002e0| 2c 20 77 68 69 63 68 20 | 69 73 20 61 6e 20 69 6e |, which |is an in|
|000002f0| 74 65 67 65 72 2e 0d 0d | 45 78 61 6d 70 6c 65 20 |teger...|Example |
|00000300| 33 20 28 73 75 62 74 72 | 61 63 74 69 6f 6e 29 3a |3 (subtr|action):|
|00000310| 0d 0d 54 68 00 00 02 48 | 00 44 00 01 00 00 02 e8 |..Th...H|.D......|
|00000320| 69 73 20 73 74 61 74 65 | 6d 65 6e 74 20 73 75 62 |is state|ment sub|
|00000330| 74 72 61 63 74 73 20 74 | 68 65 20 66 6c 6f 61 74 |tracts t|he float|
|00000340| 69 6e 67 2d 70 6f 69 6e | 74 20 6e 75 6d 62 65 72 |ing-poin|t number|
|00000350| 20 31 2e 35 20 66 72 6f | 6d 20 33 2e 32 35 2c 20 | 1.5 fro|m 3.25, |
|00000360| 00 00 02 94 00 44 00 01 | 00 00 03 34 61 6e 64 20 |.....D..|...4and |
|00000370| 74 68 65 6e 20 64 69 73 | 70 6c 61 79 73 20 74 68 |then dis|plays th|
|00000380| 65 20 72 65 73 75 6c 74 | 20 69 6e 20 74 68 65 20 |e result| in the |
|00000390| 6d 65 73 73 61 67 65 20 | 77 69 6e 64 6f 77 3a 0d |message |window:.|
|000003a0| 0d 70 75 74 20 33 2e 32 | 35 20 2d 20 00 00 02 e0 |.put 3.2|5 - ....|
|000003b0| 00 44 00 01 ff ff ff ff | 31 2e 35 0d 0d 54 68 65 |.D......|1.5..The|
|000003c0| 20 72 65 73 75 6c 74 20 | 69 73 20 31 2e 37 35 2c | result |is 1.75,|
|000003d0| 20 77 68 69 63 68 20 69 | 73 20 61 20 66 6c 6f 61 | which i|s a floa|
|000003e0| 74 69 6e 67 2d 70 6f 69 | 6e 74 20 6e 75 6d 62 65 |ting-poi|nt numbe|
|000003f0| 72 2e 0d 00 00 00 00 00 | 00 00 00 00 00 1a 00 22 |r.......|......."|
|00000400| 00 00 02 53 00 00 03 a2 | 02 af 00 00 00 fe 00 00 |...S....|........|
|00000410| 00 0b 00 00 06 92 00 00 | 03 9a 00 00 00 00 00 44 |........|.......D|
|00000420| 00 ce 00 00 03 ee 45 78 | 61 6d 70 6c 65 20 31 3a |......Ex|ample 1:|
|00000430| 0d 0d 54 68 69 73 20 73 | 74 61 74 65 6d 65 6e 74 |..This s|tatement|
|00000440| 20 63 61 6c 63 75 6c 61 | 74 65 73 20 74 68 65 20 | calcula|tes the |
|00000450| 61 62 73 6f 6c 75 74 65 | 20 76 61 6c 75 65 20 6f |absolute| value o|
|00000460| 66 20 d0 32 2e 32 00 00 | 03 9a 00 44 00 ce 00 00 |f .2.2..|...D....|
|00000470| 04 3a 20 61 6e 64 20 64 | 69 73 70 6c 61 79 73 20 |.: and d|isplays |
|00000480| 74 68 65 20 72 65 73 75 | 6c 74 20 69 6e 20 74 68 |the resu|lt in th|
|00000490| 65 20 6d 65 73 73 61 67 | 65 20 77 69 6e 64 6f 77 |e messag|e window|
|000004a0| 3a 0d 0d 70 75 74 20 61 | 62 73 28 2d 32 2e 32 29 |:..put a|bs(-2.2)|
|000004b0| 0d 0d 00 00 03 e6 00 44 | 00 01 00 00 04 86 54 68 |.......D|......Th|
|000004c0| 69 73 20 73 74 61 74 65 | 6d 65 6e 74 20 6d 65 61 |is state|ment mea|
|000004d0| 73 75 72 65 73 20 74 68 | 65 20 64 69 66 66 65 72 |sures th|e differ|
|000004e0| 65 6e 63 65 20 62 65 74 | 77 65 65 6e 20 74 68 65 |ence bet|ween the|
|000004f0| 20 63 75 72 72 65 6e 74 | 20 76 65 72 74 69 00 00 | current| verti..|
|00000500| 04 32 00 44 00 01 00 00 | 04 d2 63 61 6c 20 6d 6f |.2.D....|..cal mo|
|00000510| 75 73 65 20 70 6f 73 69 | 74 69 6f 6e 20 61 6e 64 |use posi|tion and|
|00000520| 20 74 68 65 20 6d 6f 75 | 73 65 d5 20 73 20 73 74 | the mou|se. s st|
|00000530| 61 72 74 69 6e 67 20 70 | 6f 73 69 74 69 6f 6e 2e |arting p|osition.|
|00000540| 20 49 74 20 74 68 65 6e | 20 63 00 00 04 7e 00 44 | It then| c...~.D|
|00000550| 00 16 00 00 05 1e 61 6c | 63 75 6c 61 74 65 73 20 |......al|culates |
|00000560| 74 68 65 20 61 62 73 6f | 6c 75 74 65 20 76 61 6c |the abso|lute val|
|00000570| 75 65 20 6f 66 20 74 68 | 65 20 64 69 66 66 65 72 |ue of th|e differ|
|00000580| 65 6e 63 65 2e 20 49 66 | 20 74 68 65 20 64 69 66 |ence. If| the dif|
|00000590| 66 65 72 65 6e 63 00 00 | 04 ca 00 44 00 01 00 00 |ferenc..|...D....|
|000005a0| 05 6a 65 20 69 73 20 6d | 6f 72 65 20 74 68 61 6e |.je is m|ore than|
|000005b0| 20 33 30 2c 20 4c 69 6e | 67 6f 20 63 68 61 6e 67 | 30, Lin|go chang|
|000005c0| 65 73 20 74 68 65 20 63 | 6f 6c 6f 72 20 6f 66 20 |es the c|olor of |
|000005d0| 73 70 72 69 74 65 20 36 | 2e 0d 0d 45 78 61 6d 70 |sprite 6|...Examp|
|000005e0| 6c 65 00 00 05 16 00 44 | 00 01 00 00 05 b6 20 32 |le.....D|...... 2|
|000005f0| 3a 0d 0d 54 68 69 73 20 | 73 74 61 74 65 6d 65 6e |:..This |statemen|
|00000600| 74 20 64 65 74 65 72 6d | 69 6e 65 73 20 77 68 65 |t determ|ines whe|
|00000610| 74 68 65 72 20 74 68 65 | 20 61 62 73 6f 6c 75 74 |ther the| absolut|
|00000620| 65 20 76 61 6c 75 65 20 | 6f 66 20 74 68 65 00 00 |e value |of the..|
|00000630| 05 62 00 44 00 01 00 00 | 06 02 20 64 69 66 66 65 |.b.D....|.. diffe|
|00000640| 72 65 6e 63 65 20 62 65 | 74 77 65 65 6e 20 74 68 |rence be|tween th|
|00000650| 65 20 63 75 72 72 65 6e | 74 20 6d 6f 75 73 65 20 |e curren|t mouse |
|00000660| 70 6f 73 69 74 69 6f 6e | 20 61 6e 64 20 74 68 65 |position| and the|
|00000670| 20 76 61 6c 75 65 20 6f | 66 20 00 00 05 ae 00 44 | value o|f .....D|
|00000680| 00 01 00 00 06 4e 74 68 | 65 20 76 61 72 69 61 62 |.....Nth|e variab|
|00000690| 6c 65 20 73 74 61 72 74 | 56 20 69 73 20 67 72 65 |le start|V is gre|
|000006a0| 61 74 65 72 20 74 68 61 | 6e 20 33 30 2e 20 49 66 |ater tha|n 30. If|
|000006b0| 20 69 74 20 69 73 2c 20 | 74 68 65 20 66 6f 72 65 | it is, |the fore|
|000006c0| 67 72 6f 75 6e 64 00 00 | 05 fa 00 44 00 01 00 00 |ground..|...D....|
|000006d0| 06 9a 20 63 6f 6c 6f 72 | 20 6f 66 20 73 70 72 69 |.. color| of spri|
|000006e0| 74 65 20 36 20 69 73 20 | 63 68 61 6e 67 65 64 2e |te 6 is |changed.|
|000006f0| 0d 0d 69 66 20 61 62 73 | 20 28 74 68 65 20 6d 6f |..if abs| (the mo|
|00000700| 75 73 65 56 20 2d 20 73 | 74 61 72 74 56 29 20 3e |useV - s|tartV) >|
|00000710| 20 33 00 00 06 46 00 44 | 00 01 ff ff ff ff 30 20 | 3...F.D|......0 |
|00000720| 74 68 65 6e 20 c2 0d 0d | 73 65 74 20 74 68 65 20 |then ...|set the |
|00000730| 66 6f 72 65 63 6f 6c 6f | 72 20 6f 66 20 73 70 72 |forecolo|r of spr|
|00000740| 69 74 65 20 36 20 74 6f | 20 39 35 0d 0d 00 00 00 |ite 6 to| 95.....|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 1a 00 22 00 00 | 02 42 00 00 07 ec 00 fd |....."..|.B......|
|00000770| 00 00 03 80 00 00 00 04 | 00 00 07 00 00 00 07 e4 |........|........|
|00000780| 00 00 07 4c 00 44 00 ce | ff ff ff ff 65 20 62 61 |...L.D..|....e ba|
|00000790| 63 6b 43 6f 6c 6f 72 20 | 6f 66 20 73 70 72 69 74 |ckColor |of sprit|
|000007a0| 65 20 31 20 74 6f 20 33 | 36 20 2d 2d 20 6c 69 67 |e 1 to 3|6 -- lig|
|000007b0| 68 74 20 62 6c 75 65 0d | 0d 65 6e 64 20 72 65 73 |ht blue.|.end res|
|000007c0| 65 74 43 6f 6c 6f 72 73 | 0d 00 00 00 00 00 07 98 |etColors|........|
|000007d0| 00 44 00 ce 00 00 07 08 | 73 2e 0d 0d 09 73 65 74 |.D......|s....set|
|000007e0| 20 74 68 65 20 66 6f 72 | 65 43 6f 6c 6f 72 20 6f | the for|eColor o|
|000007f0| 66 20 73 70 72 69 74 65 | 20 31 20 74 6f 20 33 35 |f sprite| 1 to 35|
|00000800| 20 2d 2d 20 62 72 69 67 | 68 74 20 72 65 64 0d 0d | -- brig|ht red..|
|00000810| 09 09 73 65 74 20 74 68 | 00 00 07 e4 00 44 00 01 |..set th|.....D..|
|00000820| 00 00 07 54 65 6e 74 3a | 0d 0d 6f 6e 20 72 65 73 |...Tent:|..on res|
|00000830| 65 74 43 6f 6c 6f 72 73 | 0d 0d 09 2d 2d 20 54 68 |etColors|...-- Th|
|00000840| 69 73 20 68 61 6e 64 6c | 65 72 20 72 65 73 65 74 |is handl|er reset|
|00000850| 73 20 74 68 65 20 73 70 | 72 69 74 65 d5 73 20 63 |s the sp|rite.s c|
|00000860| 6f 6c 6f 72 00 00 00 00 | 00 44 00 01 00 00 07 a0 |olor....|.D......|
|00000870| 54 68 69 73 20 68 61 6e | 64 6c 65 72 20 75 73 65 |This han|dler use|
|00000880| 73 20 61 20 64 6f 75 62 | 6c 65 20 68 79 70 68 65 |s a doub|le hyphe|
|00000890| 6e 20 74 6f 20 6d 61 6b | 65 20 74 68 65 20 73 65 |n to mak|e the se|
|000008a0| 63 6f 6e 64 20 6c 69 6e | 65 20 61 20 63 6f 6d 6d |cond lin|e a comm|
|000008b0| 00 00 00 00 00 1a 00 22 | 00 00 02 46 00 00 08 5a |......."|...F...Z|
|000008c0| 01 5d 00 00 06 e6 00 00 | 00 06 00 00 09 ce 00 00 |.]......|........|
|000008d0| 08 52 00 00 00 00 00 44 | 00 ce 00 00 08 a6 45 78 |.R.....D|......Ex|
|000008e0| 61 6d 70 6c 65 20 31 3a | 0d 0d 54 68 69 73 20 73 |ample 1:|..This s|
|000008f0| 74 61 74 65 6d 65 6e 74 | 20 63 6f 6e 63 61 74 65 |tatement| concate|
|00000900| 6e 61 74 65 73 20 74 68 | 65 20 73 74 72 69 6e 67 |nates th|e string|
|00000910| 73 20 d2 61 62 72 61 d3 | 20 61 6e 64 20 d2 00 00 |s .abra.| and ...|
|00000920| 08 52 00 44 00 ce 00 00 | 08 f2 63 61 64 61 62 72 |.R.D....|..cadabr|
|00000930| 61 d3 3a 0d 0d 70 75 74 | 20 22 61 62 72 61 22 20 |a.:..put| "abra" |
|00000940| 26 20 22 63 61 64 61 62 | 72 61 22 0d 0d 54 68 65 |& "cadab|ra"..The|
|00000950| 20 72 65 73 75 6c 74 20 | 69 73 20 74 68 65 20 73 | result |is the s|
|00000960| 74 72 69 6e 67 20 d2 61 | 62 72 00 00 08 9e 00 44 |tring .a|br.....D|
|00000970| 00 01 00 00 09 3e 61 63 | 61 64 61 62 72 61 d3 2e |.....>ac|adabra..|
|00000980| 0d 0d 45 78 61 6d 70 6c | 65 20 32 3a 0d 0d 54 68 |..Exampl|e 2:..Th|
|00000990| 69 73 20 73 74 61 74 65 | 6d 65 6e 74 20 63 6f 6e |is state|ment con|
|000009a0| 63 61 74 65 6e 61 74 65 | 73 20 74 68 65 20 73 74 |catenate|s the st|
|000009b0| 72 69 6e 67 73 20 00 00 | 08 ea 00 44 00 01 00 00 |rings ..|...D....|
|000009c0| 09 8a d2 24 d3 20 61 6e | 64 20 74 68 65 20 63 6f |...$. an|d the co|
|000009d0| 6e 74 65 6e 74 20 6f 66 | 20 74 68 65 20 76 61 72 |ntent of| the var|
|000009e0| 69 61 62 6c 65 20 6e 61 | 6d 65 64 20 70 72 69 63 |iable na|med pric|
|000009f0| 65 2e 20 54 68 65 20 63 | 6f 6e 63 61 74 65 6e 61 |e. The c|oncatena|
|00000a00| 74 65 00 00 09 36 00 44 | 00 01 00 00 09 d6 64 20 |te...6.D|......d |
|00000a10| 73 74 72 69 6e 67 20 69 | 73 20 74 68 65 6e 20 61 |string i|s then a|
|00000a20| 73 73 69 67 6e 65 64 20 | 74 6f 20 74 68 65 20 74 |ssigned |to the t|
|00000a30| 65 78 74 20 63 61 73 74 | 20 6d 65 6d 62 65 72 20 |ext cast| member |
|00000a40| 50 72 69 63 65 3a 0d 0d | 70 75 74 20 22 24 00 00 |Price:..|put "$..|
|00000a50| 09 82 00 44 00 01 ff ff | ff ff 22 20 26 20 70 72 |...D....|.." & pr|
|00000a60| 69 63 65 20 69 6e 74 6f | 20 66 69 65 6c 64 20 22 |ice into| field "|
|00000a70| 50 72 69 63 65 22 0d 00 | 00 00 00 00 00 00 00 00 |Price"..|........|
|00000a80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 1a |........|........|
|00000aa0| 00 22 00 00 02 47 00 00 | 0a 44 01 b9 00 00 08 38 |."...G..|.D.....8|
|00000ab0| 00 00 00 07 00 00 0c 04 | 00 00 0a 3c 00 00 00 00 |........|...<....|
|00000ac0| 00 44 00 ce 00 00 0a 90 | 45 78 61 6d 70 6c 65 20 |.D......|Example |
|00000ad0| 31 3a 0d 0d 54 68 69 73 | 20 73 74 61 74 65 6d 65 |1:..This| stateme|
|00000ae0| 6e 74 20 63 6f 6e 63 61 | 74 65 6e 61 74 65 73 20 |nt conca|tenates |
|00000af0| 74 68 65 20 73 74 72 69 | 6e 67 73 20 d2 61 62 72 |the stri|ngs .abr|
|00000b00| 61 d3 20 61 6e 64 20 d2 | 00 00 0a 3c 00 44 00 ce |a. and .|...<.D..|
|00000b10| 00 00 0a dc 63 61 64 61 | 62 72 61 d3 2c 20 61 6e |....cada|bra., an|
|00000b20| 64 20 69 6e 73 65 72 74 | 73 20 61 20 73 70 61 63 |d insert|s a spac|
|00000b30| 65 20 62 65 74 77 65 65 | 6e 20 74 68 65 20 74 77 |e betwee|n the tw|
|00000b40| 6f 3a 0d 0d 70 75 74 20 | 22 61 62 72 61 22 20 26 |o:..put |"abra" &|
|00000b50| 26 20 22 63 00 00 0a 88 | 00 44 00 01 00 00 0b 28 |& "c....|.D.....(|
|00000b60| 61 64 61 62 72 61 22 0d | 0d 54 68 65 20 72 65 73 |adabra".|.The res|
|00000b70| 75 6c 74 20 69 73 20 74 | 68 65 20 73 74 72 69 6e |ult is t|he strin|
|00000b80| 67 20 d2 61 62 72 61 20 | 63 61 64 61 62 72 61 d3 |g .abra |cadabra.|
|00000b90| 2e 0d 0d 45 78 61 6d 70 | 6c 65 20 32 3a 0d 0d 54 |...Examp|le 2:..T|
|00000ba0| 00 00 0a d4 00 44 00 01 | 00 00 0b 74 68 69 73 20 |.....D..|...this |
|00000bb0| 73 74 61 74 65 6d 65 6e | 74 20 63 6f 6e 63 61 74 |statemen|t concat|
|00000bc0| 65 6e 61 74 65 73 20 74 | 68 65 20 73 74 72 69 6e |enates t|he strin|
|00000bd0| 67 73 20 d2 54 6f 64 61 | 79 20 69 73 d3 20 61 6e |gs .Toda|y is. an|
|00000be0| 64 20 74 6f 64 61 79 d5 | 73 20 64 61 00 00 0b 20 |d today.|s da... |
|00000bf0| 00 44 00 01 00 00 0b c0 | 74 65 20 69 6e 20 74 68 |.D......|te in th|
|00000c00| 65 20 6c 6f 6e 67 20 66 | 6f 72 6d 61 74 2c 20 61 |e long f|ormat, a|
|00000c10| 6e 64 20 69 6e 73 65 72 | 74 73 20 61 20 73 70 61 |nd inser|ts a spa|
|00000c20| 63 65 20 62 65 74 77 65 | 65 6e 20 74 68 65 20 74 |ce betwe|en the t|
|00000c30| 77 6f 3a 0d 0d 70 75 74 | 00 00 0b 6c 00 44 00 01 |wo:..put|...l.D..|
|00000c40| 00 00 0c 0c 20 22 54 6f | 64 61 79 20 69 73 22 20 |.... "To|day is" |
|00000c50| 26 26 20 74 68 65 20 6c | 6f 6e 67 20 64 61 74 65 |&& the l|ong date|
|00000c60| 0d 0d 49 66 20 74 6f 64 | 61 79 d5 73 20 64 61 74 |..If tod|ay.s dat|
|00000c70| 65 20 77 65 72 65 20 54 | 75 65 73 64 61 79 2c 20 |e were T|uesday, |
|00000c80| 4d 61 72 63 00 00 0b b8 | 00 44 00 01 ff ff ff ff |Marc....|.D......|
|00000c90| 68 20 31 35 2c 20 31 39 | 39 34 2c 20 74 68 65 20 |h 15, 19|94, the |
|00000ca0| 72 65 73 75 6c 74 20 77 | 6f 75 6c 64 20 62 65 20 |result w|ould be |
|00000cb0| 54 75 65 73 64 61 79 2c | 20 4d 61 72 63 68 20 31 |Tuesday,| March 1|
|00000cc0| 35 2c 20 31 39 39 34 2e | 0d 00 00 00 00 00 00 00 |5, 1994.|........|
|00000cd0| 00 00 00 00 00 1a 00 22 | 00 00 02 40 00 00 0c 7a |......."|...@...z|
|00000ce0| 00 d9 00 00 0a 22 00 00 | 00 04 00 00 0d 56 00 00 |....."..|.....V..|
|00000cf0| 0c 72 00 00 00 00 00 44 | 00 ce 00 00 0c c6 54 68 |.r.....D|......Th|
|00000d00| 65 73 65 20 73 74 61 74 | 65 6d 65 6e 74 73 20 75 |ese stat|ements u|
|00000d10| 73 65 20 74 68 65 20 67 | 72 6f 75 70 69 6e 67 20 |se the g|rouping |
|00000d20| 6f 70 65 72 61 74 6f 72 | 20 74 6f 20 63 68 61 6e |operator| to chan|
|00000d30| 67 65 20 74 68 65 20 6f | 72 64 65 72 20 69 00 00 |ge the o|rder i..|
|00000d40| 0c 72 00 44 00 ce 00 00 | 0d 12 6e 20 77 68 69 63 |.r.D....|..n whic|
|00000d50| 68 20 6f 70 65 72 61 74 | 69 6f 6e 73 20 6f 63 63 |h operat|ions occ|
|00000d60| 75 72 2e 20 54 68 65 20 | 72 65 73 75 6c 74 20 61 |ur. The |result a|
|00000d70| 70 70 65 61 72 73 20 62 | 65 6c 6f 77 20 65 61 63 |ppears b|elow eac|
|00000d80| 68 20 73 74 61 74 65 6d | 65 6e 00 00 0c be 00 44 |h statem|en.....D|
|00000d90| 00 01 00 00 0d 5e 74 3a | 0d 0d 70 75 74 20 28 32 |.....^t:|..put (2|
|00000da0| 20 2b 20 33 29 20 2a 20 | 28 34 20 2b 20 35 29 0d | + 3) * |(4 + 5).|
|00000db0| 0d 2d 2d 20 34 35 0d 0d | 70 75 74 20 32 20 2b 20 |.-- 45..|put 2 + |
|00000dc0| 28 33 20 2a 20 28 34 20 | 2b 20 35 29 29 0d 0d 2d |(3 * (4 |+ 5))..-|
|00000dd0| 2d 20 32 39 0d 0d 00 00 | 0d 0a 00 44 00 01 ff ff |- 29....|...D....|
|00000de0| ff ff 70 75 74 20 32 20 | 2b 20 33 20 2a 20 34 20 |..put 2 |+ 3 * 4 |
|00000df0| 2b 20 35 0d 0d 2d 2d 20 | 31 39 0d 00 00 00 00 00 |+ 5..-- |19......|
|00000e00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e20| 00 00 00 00 00 00 00 1a | 00 22 00 00 02 43 00 00 |........|."...C..|
|00000e30| 0d cc 01 73 00 00 0c 58 | 00 00 00 06 00 00 0f 40 |...s...X|.......@|
|00000e40| 00 00 0d c4 00 00 00 00 | 00 44 00 ce 00 00 0e 18 |........|.D......|
|00000e50| 45 78 61 6d 70 6c 65 20 | 31 3a 0d 0d 54 68 69 73 |Example |1:..This|
|00000e60| 20 73 74 61 74 65 6d 65 | 6e 74 20 6d 75 6c 74 69 | stateme|nt multi|
|00000e70| 70 6c 69 65 73 20 74 68 | 65 20 69 6e 74 65 67 65 |plies th|e intege|
|00000e80| 72 73 20 32 20 61 6e 64 | 20 33 2c 20 61 6e 64 20 |rs 2 and| 3, and |
|00000e90| 00 00 0d c4 00 44 00 ce | 00 00 0e 64 74 68 65 6e |.....D..|...dthen|
|00000ea0| 20 64 69 73 70 6c 61 79 | 73 20 74 68 65 20 72 65 | display|s the re|
|00000eb0| 73 75 6c 74 20 69 6e 20 | 74 68 65 20 6d 65 73 73 |sult in |the mess|
|00000ec0| 61 67 65 20 77 69 6e 64 | 6f 77 3a 0d 0d 70 75 74 |age wind|ow:..put|
|00000ed0| 20 32 20 2a 20 33 0d 0d | 54 68 65 20 00 00 0e 10 | 2 * 3..|The ....|
|00000ee0| 00 44 00 01 00 00 0e b0 | 72 65 73 75 6c 74 20 69 |.D......|result i|
|00000ef0| 73 20 36 2c 20 77 68 69 | 63 68 20 69 73 20 61 6e |s 6, whi|ch is an|
|00000f00| 20 69 6e 74 65 67 65 72 | 2e 0d 0d 45 78 61 6d 70 | integer|...Examp|
|00000f10| 6c 65 20 32 3a 0d 0d 54 | 68 69 73 20 73 74 61 74 |le 2:..T|his stat|
|00000f20| 65 6d 65 6e 74 20 6d 75 | 00 00 0e 5c 00 44 00 01 |ement mu|...\.D..|
|00000f30| 00 00 0e fc 6c 74 69 70 | 6c 69 65 73 20 74 68 65 |....ltip|lies the|
|00000f40| 20 66 6c 6f 61 74 69 6e | 67 2d 70 6f 69 6e 74 20 | floatin|g-point |
|00000f50| 6e 75 6d 62 65 72 73 20 | 32 2e 30 20 61 6e 64 20 |numbers |2.0 and |
|00000f60| 33 2e 31 34 31 34 2c 20 | 61 6e 64 20 74 68 65 6e |3.1414, |and then|
|00000f70| 20 64 69 73 00 00 0e a8 | 00 44 00 01 00 00 0f 48 | dis....|.D.....H|
|00000f80| 70 6c 61 79 73 20 74 68 | 65 20 72 65 73 75 6c 74 |plays th|e result|
|00000f90| 20 69 6e 20 74 68 65 20 | 6d 65 73 73 61 67 65 20 | in the |message |
|00000fa0| 77 69 6e 64 6f 77 3a 0d | 0d 70 75 74 20 32 2e 30 |window:.|.put 2.0|
|00000fb0| 20 2a 20 33 2e 31 34 31 | 36 0d 0d 54 68 65 20 72 | * 3.141|6..The r|
|00000fc0| 00 00 0e f4 00 44 00 01 | ff ff ff ff 65 73 75 6c |.....D..|....esul|
|00000fd0| 74 20 69 73 20 36 2e 32 | 38 33 32 2c 20 77 68 69 |t is 6.2|832, whi|
|00000fe0| 63 68 20 69 73 20 61 20 | 66 6c 6f 61 74 69 6e 67 |ch is a |floating|
|00000ff0| 2d 70 6f 69 6e 74 20 6e | 75 6d 62 65 72 2e 0d 00 |-point n|umber...|
|00001000| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001010| 00 1a 00 22 00 00 02 45 | 00 00 11 32 01 60 00 00 |..."...E|...2.`..|
|00001020| 0d aa 00 00 00 06 00 00 | 0f ae 00 00 11 2a 00 00 |........|.....*..|
|00001030| 0f fa 00 44 00 ce ff ff | ff ff 69 63 68 20 69 73 |...D....|..ich is|
|00001040| 20 61 20 66 6c 6f 61 74 | 69 6e 67 2d 70 6f 69 6e | a float|ing-poin|
|00001050| 74 20 6e 75 6d 62 65 72 | 2e 0d 00 00 00 00 00 00 |t number|........|
|00001060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001070| 00 00 00 00 00 00 00 00 | 00 00 00 00 10 46 00 44 |........|.....F.D|
|00001080| 00 ce 00 00 0f b6 74 20 | 69 6e 20 74 68 65 20 6d |......t |in the m|
|00001090| 65 73 73 61 67 65 20 77 | 69 6e 64 6f 77 3a 0d 0d |essage w|indow:..|
|000010a0| 70 75 74 20 32 2e 35 20 | 2b 20 33 2e 32 35 0d 0d |put 2.5 |+ 3.25..|
|000010b0| 54 68 65 20 72 65 73 75 | 6c 74 20 69 73 20 35 2e |The resu|lt is 5.|
|000010c0| 37 35 2c 20 77 68 00 00 | 10 92 00 44 00 01 00 00 |75, wh..|...D....|
|000010d0| 10 02 20 66 6c 6f 61 74 | 69 6e 67 2d 70 6f 69 6e |.. float|ing-poin|
|000010e0| 74 20 6e 75 6d 62 65 72 | 20 32 2e 35 20 61 6e 64 |t number| 2.5 and|
|000010f0| 20 33 2e 32 35 2c 20 61 | 6e 64 20 74 68 65 6e 20 | 3.25, a|nd then |
|00001100| 64 69 73 70 6c 61 79 73 | 20 74 68 65 20 72 65 73 |displays| the res|
|00001110| 75 6c 00 00 10 de 00 44 | 00 01 00 00 10 4e 20 69 |ul.....D|.....N i|
|00001120| 73 20 35 2c 20 77 68 69 | 63 68 20 69 73 20 61 6e |s 5, whi|ch is an|
|00001130| 20 69 6e 74 65 67 65 72 | 2e 0d 0d 45 78 61 6d 70 | integer|...Examp|
|00001140| 6c 65 20 32 3a 0d 0d 54 | 68 69 73 20 73 74 61 74 |le 2:..T|his stat|
|00001150| 65 6d 65 6e 74 20 61 64 | 64 73 20 74 68 65 00 00 |ement ad|ds the..|
|00001160| 11 2a 00 44 00 01 00 00 | 10 9a 69 73 70 6c 61 79 |.*.D....|..isplay|
|00001170| 73 20 74 68 65 20 72 65 | 73 75 6c 74 20 69 6e 20 |s the re|sult in |
|00001180| 74 68 65 20 6d 65 73 73 | 61 67 65 20 77 69 6e 64 |the mess|age wind|
|00001190| 6f 77 3a 0d 0d 70 75 74 | 20 32 20 2b 20 33 0d 0d |ow:..put| 2 + 3..|
|000011a0| 54 68 65 20 72 65 73 75 | 6c 74 00 00 00 00 00 44 |The resu|lt.....D|
|000011b0| 00 01 00 00 10 e6 45 78 | 61 6d 70 6c 65 20 31 3a |......Ex|ample 1:|
|000011c0| 0d 0d 54 68 69 73 20 73 | 74 61 74 65 6d 65 6e 74 |..This s|tatement|
|000011d0| 20 61 64 64 73 20 74 68 | 65 20 69 6e 74 65 67 65 | adds th|e intege|
|000011e0| 72 73 20 32 20 61 6e 64 | 20 33 2c 20 61 6e 64 20 |rs 2 and| 3, and |
|000011f0| 74 68 65 6e 20 64 00 00 | 00 00 00 1a 00 22 00 00 |then d..|....."..|
|00001200| 02 44 00 00 11 a0 01 67 | 00 00 0f 94 00 00 00 06 |.D.....g|........|
|00001210| 00 00 13 14 00 00 11 98 | 00 00 00 00 00 44 00 ce |........|.....D..|
|00001220| 00 00 11 ec 45 78 61 6d | 70 6c 65 20 31 3a 0d 0d |....Exam|ple 1:..|
|00001230| 54 68 69 73 20 73 74 61 | 74 65 6d 65 6e 74 20 64 |This sta|tement d|
|00001240| 69 76 69 64 65 73 20 74 | 68 65 20 69 6e 74 65 67 |ivides t|he integ|
|00001250| 65 72 20 32 32 20 62 79 | 20 37 2c 20 61 6e 64 20 |er 22 by| 7, and |
|00001260| 74 68 65 6e 00 00 11 98 | 00 44 00 ce 00 00 12 38 |then....|.D.....8|
|00001270| 20 64 69 73 70 6c 61 79 | 73 20 74 68 65 20 72 65 | display|s the re|
|00001280| 73 75 6c 74 20 69 6e 20 | 74 68 65 20 6d 65 73 73 |sult in |the mess|
|00001290| 61 67 65 20 77 69 6e 64 | 6f 77 3a 0d 0d 70 75 74 |age wind|ow:..put|
|000012a0| 20 32 32 20 2f 20 37 0d | 0d 54 68 65 20 72 65 73 | 22 / 7.|.The res|
|000012b0| 00 00 11 e4 00 44 00 01 | 00 00 12 84 75 6c 74 20 |.....D..|....ult |
|000012c0| 69 73 20 33 2c 20 77 68 | 69 63 68 20 69 73 20 61 |is 3, wh|ich is a|
|000012d0| 6e 20 69 6e 74 65 67 65 | 72 2e 0d 0d 45 78 61 6d |n intege|r...Exam|
|000012e0| 70 6c 65 20 32 3a 0d 0d | 54 68 69 73 20 73 74 61 |ple 2:..|This sta|
|000012f0| 74 65 6d 65 6e 74 20 64 | 69 76 69 64 00 00 12 30 |tement d|ivid...0|
|00001300| 00 44 00 01 00 00 12 d0 | 65 73 20 74 68 65 20 66 |.D......|es the f|
|00001310| 6c 6f 61 74 69 6e 67 2d | 70 6f 69 6e 74 20 6e 75 |loating-|point nu|
|00001320| 6d 62 65 72 20 32 32 2e | 30 20 62 79 20 37 2e 30 |mber 22.|0 by 7.0|
|00001330| 2c 20 61 6e 64 20 74 68 | 65 6e 20 64 69 73 70 6c |, and th|en displ|
|00001340| 61 79 73 20 74 68 65 20 | 00 00 12 7c 00 44 00 01 |ays the |...|.D..|
|00001350| 00 00 13 1c 72 65 73 75 | 6c 74 20 69 6e 20 74 68 |....resu|lt in th|
|00001360| 65 20 6d 65 73 73 61 67 | 65 20 77 69 6e 64 6f 77 |e messag|e window|
|00001370| 3a 0d 0d 70 75 74 20 32 | 32 2e 30 20 2f 20 37 2e |:..put 2|2.0 / 7.|
|00001380| 30 0d 0d 54 68 65 20 72 | 65 73 75 6c 74 20 69 73 |0..The r|esult is|
|00001390| 20 33 2e 31 00 00 12 c8 | 00 44 00 01 ff ff ff ff | 3.1....|.D......|
|000013a0| 34 32 39 2c 20 77 68 69 | 63 68 20 69 73 20 61 20 |429, whi|ch is a |
|000013b0| 66 6c 6f 61 74 69 6e 67 | 2d 70 6f 69 6e 74 20 6e |floating|-point n|
|000013c0| 75 6d 62 65 72 2e 0d 00 | 00 00 00 00 00 00 00 00 |umber...|........|
|000013d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013e0| 00 00 00 00 00 1a 00 22 | 00 00 02 4f 00 00 15 9e |......."|...O....|
|000013f0| 01 e7 00 00 11 7e 00 00 | 00 08 00 00 13 82 00 00 |.....~..|........|
|00001400| 15 96 00 00 13 ce 00 44 | 00 ce ff ff ff ff 73 20 |.......D|......s |
|00001410| 61 6e 20 65 6d 70 74 79 | 20 70 72 6f 70 65 72 74 |an empty| propert|
|00001420| 79 20 6c 69 73 74 3a 0d | 0d 73 65 74 20 78 20 3d |y list:.|.set x =|
|00001430| 20 5b 3a 5d 0d 00 00 00 | 00 00 00 00 00 00 00 00 | [:]....|........|
|00001440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001450| 14 1a 00 44 00 ce 00 00 | 13 8a 6d 70 74 79 20 6c |...D....|..mpty l|
|00001460| 69 6e 65 61 72 20 6c 69 | 73 74 3a 0d 0d 73 65 74 |inear li|st:..set|
|00001470| 20 78 20 3d 20 5b 5d 0d | 0d 45 78 61 6d 70 6c 65 | x = [].|.Example|
|00001480| 20 34 3a 0d 0d 54 68 69 | 73 20 73 74 61 74 65 6d | 4:..Thi|s statem|
|00001490| 65 6e 74 20 63 72 65 61 | 74 65 00 00 14 66 00 44 |ent crea|te...f.D|
|000014a0| 00 01 00 00 13 d6 33 2c | 20 23 67 65 61 72 73 3a |......3,| #gears:|
|000014b0| 36 2c 20 23 72 61 6d 70 | 73 3a 38 5d 2e 0d 0d 45 |6, #ramp|s:8]...E|
|000014c0| 78 61 6d 70 6c 65 20 33 | 3a 0d 0d 54 68 69 73 20 |xample 3|:..This |
|000014d0| 73 74 61 74 65 6d 65 6e | 74 20 63 72 65 61 74 65 |statemen|t create|
|000014e0| 73 20 61 6e 20 65 00 00 | 14 b2 00 44 00 01 00 00 |s an e..|...D....|
|000014f0| 14 22 4c 69 73 74 0d 09 | 73 6f 72 74 20 61 4c 69 |."List..|sort aLi|
|00001500| 73 74 0d 09 70 75 74 20 | 61 4c 69 73 74 0d 65 6e |st..put |aList.en|
|00001510| 64 20 73 6f 72 74 4c 69 | 73 74 0d 0d 54 68 65 20 |d sortLi|st..The |
|00001520| 72 65 73 75 6c 74 20 69 | 73 20 5b 23 62 61 6c 6c |result i|s [#ball|
|00001530| 73 3a 00 00 14 fe 00 44 | 00 01 00 00 14 6e 64 20 |s:.....D|.....nd |
|00001540| 74 68 65 6e 20 64 69 73 | 70 6c 61 79 73 20 74 68 |then dis|plays th|
|00001550| 65 20 72 65 73 75 6c 74 | 20 69 6e 20 74 68 65 20 |e result| in the |
|00001560| 6d 65 73 73 61 67 65 20 | 77 69 6e 64 6f 77 3a 0d |message |window:.|
|00001570| 0d 6f 6e 20 73 6f 72 74 | 4c 69 73 74 20 61 00 00 |.on sort|List a..|
|00001580| 15 4a 00 44 00 01 00 00 | 14 ba 3a 33 2c 20 23 72 |.J.D....|..:3, #r|
|00001590| 61 6d 70 73 3a 38 5d 0d | 0d 45 78 61 6d 70 6c 65 |amps:8].|.Example|
|000015a0| 20 32 3a 0d 0d 54 68 69 | 73 20 68 61 6e 64 6c 65 | 2:..Thi|s handle|
|000015b0| 72 20 73 6f 72 74 73 20 | 74 68 65 20 6c 69 73 74 |r sorts |the list|
|000015c0| 20 61 4c 69 73 74 2c 20 | 61 6e 00 00 15 96 00 44 | aList, |an.....D|
|000015d0| 00 01 00 00 15 06 20 6d | 61 63 68 69 6e 65 72 79 |...... m|achinery|
|000015e0| 20 65 71 75 61 6c 20 74 | 6f 20 74 68 65 20 6c 69 | equal t|o the li|
|000015f0| 73 74 3a 0d 0d 73 65 74 | 20 6d 61 63 68 69 6e 65 |st:..set| machine|
|00001600| 72 79 20 3d 20 5b 23 67 | 65 61 72 73 3a 36 2c 20 |ry = [#g|ears:6, |
|00001610| 23 62 61 6c 6c 73 00 00 | 00 00 00 44 00 01 00 00 |#balls..|...D....|
|00001620| 15 52 45 78 61 6d 70 6c | 65 20 31 3a 0d 0d 54 68 |.RExampl|e 1:..Th|
|00001630| 69 73 20 73 74 61 74 65 | 6d 65 6e 74 20 64 65 66 |is state|ment def|
|00001640| 69 6e 65 73 20 61 20 6c | 69 73 74 20 62 79 20 6d |ines a l|ist by m|
|00001650| 61 6b 69 6e 67 20 74 68 | 65 20 76 61 72 69 61 62 |aking th|e variab|
|00001660| 6c 65 00 00 00 00 00 1a | 00 22 00 00 06 69 00 00 |le......|."...i..|
|00001670| 16 0c 00 ad 00 00 13 68 | 00 00 00 03 00 00 16 9c |.......h|........|
|00001680| 00 00 16 04 00 00 00 00 | 00 44 00 ce 00 00 16 58 |........|.D.....X|
|00001690| 54 68 69 73 20 73 74 61 | 74 65 6d 65 6e 74 20 75 |This sta|tement u|
|000016a0| 73 65 73 20 74 68 65 20 | c2 20 63 68 61 72 61 63 |ses the |. charac|
|000016b0| 74 65 72 20 74 6f 20 77 | 72 61 70 20 74 68 65 20 |ter to w|rap the |
|000016c0| 73 74 61 74 65 6d 65 6e | 74 20 6f 6e 74 6f 20 73 |statemen|t onto s|
|000016d0| 00 00 16 04 00 44 00 ce | 00 00 16 a4 65 76 65 72 |.....D..|....ever|
|000016e0| 61 6c 20 6c 69 6e 65 73 | 3a 0d 0d 73 65 74 20 74 |al lines|:..set t|
|000016f0| 68 65 20 63 61 73 74 4e | 75 6d 20 6f 66 20 73 70 |he castN|um of sp|
|00001700| 72 69 74 65 20 6d 79 53 | 70 72 69 74 65 20 c2 0d |rite myS|prite ..|
|00001710| 0d 09 74 6f 20 74 68 65 | 20 6e 75 6d 00 00 16 50 |..to the| num...P|
|00001720| 00 44 00 01 ff ff ff ff | 62 65 72 20 6f 66 20 63 |.D......|ber of c|
|00001730| 61 73 74 20 c2 0d 0d 09 | 22 54 68 69 73 20 69 73 |ast ....|"This is|
|00001740| 20 61 20 6c 6f 6e 67 20 | 63 61 73 74 20 6e 61 6d | a long |cast nam|
|00001750| 65 2e 22 20 0d 00 00 00 | 00 00 00 00 00 00 00 00 |e." ....|........|
|00001760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 1a 00 22 |........|......."|
|00001770| 00 00 02 52 00 00 17 12 | 00 a1 00 00 15 ea 00 00 |...R....|........|
|00001780| 00 03 00 00 17 a2 00 00 | 17 0a 00 00 00 00 00 44 |........|.......D|
|00001790| 00 ce 00 00 17 5e 54 68 | 69 73 20 73 74 61 74 65 |.....^Th|is state|
|000017a0| 6d 65 6e 74 20 68 61 73 | 20 4c 69 6e 67 6f 20 65 |ment has| Lingo e|
|000017b0| 78 69 74 20 74 68 65 20 | 68 61 6e 64 6c 65 72 20 |xit the |handler |
|000017c0| 61 6e 64 20 61 6e 79 20 | 68 61 6e 64 6c 65 72 20 |and any |handler |
|000017d0| 74 68 61 74 20 63 00 00 | 17 0a 00 44 00 ce 00 00 |that c..|...D....|
|000017e0| 17 aa 61 6c 6c 65 64 20 | 69 74 20 77 68 65 6e 20 |..alled |it when |
|000017f0| 74 68 65 20 61 6d 6f 75 | 6e 74 20 6f 66 20 66 72 |the amou|nt of fr|
|00001800| 65 65 20 6d 65 6d 6f 72 | 79 20 69 73 20 6c 65 73 |ee memor|y is les|
|00001810| 73 20 74 68 61 6e 20 35 | 30 4b 3a 0d 0d 69 66 20 |s than 5|0K:..if |
|00001820| 74 68 00 00 17 56 00 44 | 00 01 ff ff ff ff 65 20 |th...V.D|......e |
|00001830| 66 72 65 65 42 79 74 65 | 73 20 3c 20 35 30 2a 31 |freeByte|s < 50*1|
|00001840| 30 32 34 20 74 68 65 6e | 20 61 62 6f 72 74 0d 00 |024 then| abort..|
|00001850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001870| 00 00 00 1a 00 22 00 00 | 02 54 00 00 18 18 01 85 |....."..|.T......|
|00001880| 00 00 16 f0 00 00 00 07 | 00 00 19 d8 00 00 18 10 |........|........|
|00001890| 00 00 00 00 00 44 00 ce | 00 00 18 64 45 78 61 6d |.....D..|...dExam|
|000018a0| 70 6c 65 20 31 3a 0d 0d | 54 68 69 73 20 73 74 61 |ple 1:..|This sta|
|000018b0| 74 65 6d 65 6e 74 20 63 | 72 65 61 74 65 73 20 61 |tement c|reates a|
|000018c0| 20 63 68 69 6c 64 20 6f | 62 6a 65 63 74 20 66 72 | child o|bject fr|
|000018d0| 6f 6d 20 74 68 65 20 70 | 61 72 65 6e 00 00 18 10 |om the p|aren....|
|000018e0| 00 44 00 ce 00 00 18 b0 | 74 20 73 63 72 69 70 74 |.D......|t script|
|000018f0| 20 4d 6f 76 69 6e 67 20 | 42 61 6c 6c 2e 20 41 6c | Moving |Ball. Al|
|00001900| 6c 20 74 68 72 65 65 20 | 76 61 6c 75 65 73 20 61 |l three |values a|
|00001910| 72 65 20 70 61 72 61 6d | 65 74 65 72 73 20 74 68 |re param|eters th|
|00001920| 61 74 20 74 68 65 20 73 | 00 00 18 5c 00 44 00 01 |at the s|...\.D..|
|00001930| 00 00 18 fc 63 72 69 70 | 74 20 72 65 71 75 69 72 |....crip|t requir|
|00001940| 65 73 3a 0d 0d 61 64 64 | 20 74 68 65 20 61 63 74 |es:..add| the act|
|00001950| 6f 72 4c 69 73 74 2c 20 | 62 69 72 74 68 28 73 63 |orList, |birth(sc|
|00001960| 72 69 70 74 20 22 4d 6f | 76 69 6e 67 42 61 6c 6c |ript "Mo|vingBall|
|00001970| 22 2c 20 31 00 00 18 a8 | 00 44 00 01 00 00 19 48 |", 1....|.D.....H|
|00001980| 2c c2 0d 0d 09 32 30 30 | 2c 32 30 30 29 0d 0d 45 |,....200|,200)..E|
|00001990| 78 61 6d 70 6c 65 20 32 | 3a 0d 0d 54 68 69 73 20 |xample 2|:..This |
|000019a0| 73 74 61 74 65 6d 65 6e | 74 20 64 69 73 70 6c 61 |statemen|t displa|
|000019b0| 79 73 20 74 68 65 20 63 | 6f 6e 74 65 6e 74 73 20 |ys the c|ontents |
|000019c0| 00 00 18 f4 00 44 00 01 | 00 00 19 94 6f 66 20 74 |.....D..|....of t|
|000019d0| 68 65 20 61 63 74 6f 72 | 4c 69 73 74 20 69 6e 20 |he actor|List in |
|000019e0| 74 68 65 20 6d 65 73 73 | 61 67 65 20 77 69 6e 64 |the mess|age wind|
|000019f0| 6f 77 3a 0d 0d 70 75 74 | 20 74 68 65 20 61 63 74 |ow:..put| the act|
|00001a00| 6f 72 4c 69 73 74 0d 0d | 45 78 61 6d 00 00 19 40 |orList..|Exam...@|
|00001a10| 00 44 00 01 00 00 19 e0 | 70 6c 65 20 33 3a 0d 0d |.D......|ple 3:..|
|00001a20| 54 68 69 73 20 73 74 61 | 74 65 6d 65 6e 74 20 63 |This sta|tement c|
|00001a30| 6c 65 61 72 73 20 74 68 | 65 20 61 63 74 6f 72 4c |lears th|e actorL|
|00001a40| 69 73 74 3a 0d 0d 73 65 | 74 20 74 68 65 20 61 63 |ist:..se|t the ac|
|00001a50| 74 6f 72 4c 69 73 74 20 | 00 00 19 8c 00 44 00 01 |torList |.....D..|
|00001a60| ff ff ff ff 3d 20 5b 5d | 0d 00 00 00 00 00 00 00 |....= []|........|
|00001a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001aa0| 00 00 00 00 00 00 00 00 | 00 1a 00 22 00 00 02 55 |........|..."...U|
|00001ab0| 00 00 1b 7e 01 25 00 00 | 17 f6 00 00 00 05 00 00 |...~.%..|........|
|00001ac0| 1a 46 00 00 1b 76 00 00 | 1a 92 00 44 00 ce ff ff |.F...v..|...D....|
|00001ad0| ff ff 75 73 65 20 74 68 | 65 20 6c 69 73 74 20 69 |..use th|e list i|
|00001ae0| 73 20 73 6f 72 74 65 64 | 3a 0d 0d 61 64 64 20 62 |s sorted|:..add b|
|00001af0| 69 64 73 2c 20 32 0d 00 | 00 00 00 00 00 00 00 00 |ids, 2..|........|
|00001b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b10| 00 00 00 00 1a de 00 44 | 00 ce 00 00 1a 4e 61 72 |.......D|.....Nar|
|00001b20| 20 6c 69 73 74 20 5b 31 | 2c 20 34 2c 20 35 5d 2e | list [1|, 4, 5].|
|00001b30| 20 54 68 65 20 6e 65 77 | 20 69 74 65 6d 20 73 74 | The new| item st|
|00001b40| 61 79 73 20 69 6e 20 61 | 6c 70 68 61 6e 75 6d 65 |ays in a|lphanume|
|00001b50| 72 69 63 20 6f 72 64 65 | 72 20 62 65 63 61 00 00 |ric orde|r beca..|
|00001b60| 1b 2a 00 44 00 01 00 00 | 1a 9a 64 64 20 62 69 64 |.*.D....|..dd bid|
|00001b70| 73 2c 20 32 0d 0d 45 78 | 61 6d 70 6c 65 20 32 3a |s, 2..Ex|ample 2:|
|00001b80| 0d 0d 54 68 69 73 20 73 | 74 61 74 65 6d 65 6e 74 |..This s|tatement|
|00001b90| 20 61 64 64 73 20 32 20 | 74 6f 20 74 68 65 20 73 | adds 2 |to the s|
|00001ba0| 6f 72 74 65 64 20 6c 69 | 6e 65 00 00 1b 76 00 44 |orted li|ne...v.D|
|00001bb0| 00 01 00 00 1a e6 64 73 | 2e 20 54 68 65 20 72 65 |......ds|. The re|
|00001bc0| 73 75 6c 74 69 6e 67 20 | 6c 69 73 74 20 69 73 20 |sulting |list is |
|00001bd0| 5b 33 2c 20 34 2c 20 31 | 2c 20 32 5d 3a 0d 0d 73 |[3, 4, 1|, 2]:..s|
|00001be0| 65 74 20 62 69 64 73 20 | 3d 20 5b 33 2c 20 34 2c |et bids |= [3, 4,|
|00001bf0| 20 31 5d 0d 0d 61 00 00 | 00 00 00 44 00 01 00 00 | 1]..a..|...D....|
|00001c00| 1b 32 45 78 61 6d 70 6c | 65 20 31 3a 0d 0d 54 68 |.2Exampl|e 1:..Th|
|00001c10| 69 73 20 73 74 61 74 65 | 6d 65 6e 74 20 61 64 64 |is state|ment add|
|00001c20| 73 20 74 68 65 20 76 61 | 6c 75 65 20 32 20 74 6f |s the va|lue 2 to|
|00001c30| 20 74 68 65 20 6c 69 73 | 74 20 6e 61 6d 65 64 20 | the lis|t named |
|00001c40| 62 69 00 00 00 00 00 1a | 00 22 00 00 02 56 00 00 |bi......|."...V..|
|00001c50| 1c d0 00 d4 00 00 1a 2c | 00 00 00 04 00 00 1b e4 |.......,|........|
|00001c60| 00 00 1c c8 00 00 1c 30 | 00 44 00 ce ff ff ff ff |.......0|.D......|
|00001c70| 20 32 2c 20 34 2c 20 38 | 2c 20 33 2c 20 36 2c 20 | 2, 4, 8|, 3, 6, |
|00001c80| 37 5d 2e 0d 00 00 00 00 | 00 00 00 00 00 00 00 00 |7]......|........|
|00001c90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cb0| 00 00 1c 7c 00 44 00 ce | 00 00 1b ec 2c 20 35 2c |...|.D..|...., 5,|
|00001cc0| 20 36 2c 20 37 5d 0d 0d | 61 64 64 41 74 20 62 69 | 6, 7]..|addAt bi|
|00001cd0| 64 73 2c 20 34 2c 20 38 | 0d 0d 54 68 65 20 72 65 |ds, 4, 8|..The re|
|00001ce0| 73 75 6c 74 69 6e 67 20 | 76 61 6c 75 65 20 6f 66 |sulting |value of|
|00001cf0| 20 62 69 64 73 20 69 73 | 20 5b 33 2c 00 00 1c c8 | bids is| [3,....|
|00001d00| 00 44 00 01 00 00 1c 38 | 73 74 20 6e 61 6d 65 64 |.D.....8|st named|
|00001d10| 20 62 69 64 73 2c 20 77 | 68 69 63 68 20 69 73 20 | bids, w|hich is |
|00001d20| 5b 33 2c 20 32 2c 20 34 | 2c 20 33 2c 20 36 2c 20 |[3, 2, 4|, 3, 6, |
|00001d30| 37 5d 3a 0d 0d 73 65 74 | 20 62 69 64 73 20 3d 20 |7]:..set| bids = |
|00001d40| 5b 33 2c 20 32 2c 20 34 | 00 00 00 00 00 44 00 01 |[3, 2, 4|.....D..|
|00001d50| 00 00 1c 84 54 68 69 73 | 20 73 74 61 74 65 6d 65 |....This| stateme|
|00001d60| 6e 74 20 61 64 64 73 20 | 74 68 65 20 76 61 6c 75 |nt adds |the valu|
|00001d70| 65 20 38 20 74 6f 20 74 | 68 65 20 66 6f 75 72 74 |e 8 to t|he fourt|
|00001d80| 68 20 70 6f 73 69 74 69 | 6f 6e 20 69 6e 20 74 68 |h positi|on in th|
|00001d90| 65 20 6c 69 00 00 00 00 | 00 1a 00 22 00 00 02 57 |e li....|..."...W|
|00001da0| 00 00 1d 3e 02 6e 00 00 | 1b ca 00 00 00 0a 00 00 |...>.n..|........|
|00001db0| 1f e2 00 00 1d 36 00 00 | 00 00 00 44 00 ce 00 00 |.....6..|...D....|
|00001dc0| 1d 8a 45 78 61 6d 70 6c | 65 20 31 3a 0d 0d 54 68 |..Exampl|e 1:..Th|
|00001dd0| 69 73 20 73 74 61 74 65 | 6d 65 6e 74 20 61 64 64 |is state|ment add|
|00001de0| 73 20 74 68 65 20 70 72 | 6f 70 65 72 74 79 20 6e |s the pr|operty n|
|00001df0| 61 6d 65 64 20 6b 61 79 | 6e 65 20 61 6e 64 20 69 |amed kay|ne and i|
|00001e00| 74 73 00 00 1d 36 00 44 | 00 ce 00 00 1d d6 20 61 |ts...6.D|...... a|
|00001e10| 73 73 69 67 6e 65 64 20 | 76 61 6c 75 65 20 33 20 |ssigned |value 3 |
|00001e20| 74 6f 20 74 68 65 20 70 | 72 6f 70 65 72 74 79 20 |to the p|roperty |
|00001e30| 6c 69 73 74 20 6e 61 6d | 65 64 20 62 69 64 73 2c |list nam|ed bids,|
|00001e40| 20 77 68 69 63 68 20 63 | 6f 6e 74 61 69 6e 00 00 | which c|ontain..|
|00001e50| 1d 82 00 44 00 01 00 00 | 1e 22 73 20 5b 23 67 65 |...D....|."s [#ge|
|00001e60| 65 3a 20 34 2c 20 23 6f | 68 61 73 69 3a 20 31 5d |e: 4, #o|hasi: 1]|
|00001e70| 2e 20 42 65 63 61 75 73 | 65 20 74 68 65 20 6c 69 |. Becaus|e the li|
|00001e80| 73 74 20 69 73 20 73 6f | 72 74 65 64 2c 20 74 68 |st is so|rted, th|
|00001e90| 65 20 6e 65 77 20 65 6e | 74 72 00 00 1d ce 00 44 |e new en|tr.....D|
|00001ea0| 00 01 00 00 1e 6e 79 20 | 69 73 20 70 6c 61 63 65 |.....ny |is place|
|00001eb0| 64 20 69 6e 20 61 6c 70 | 68 61 62 65 74 69 63 61 |d in alp|habetica|
|00001ec0| 6c 20 6f 72 64 65 72 3a | 0d 0d 61 64 64 50 72 6f |l order:|..addPro|
|00001ed0| 70 20 62 69 64 73 2c 20 | 23 6b 61 79 6e 65 2c 20 |p bids, |#kayne, |
|00001ee0| 33 0d 0d 54 68 65 00 00 | 1e 1a 00 44 00 01 00 00 |3..The..|...D....|
|00001ef0| 1e ba 20 72 65 73 75 6c | 74 20 69 73 20 74 68 65 |.. resul|t is the|
|00001f00| 20 6c 69 73 74 20 69 73 | 20 5b 23 67 65 65 3a 20 | list is| [#gee: |
|00001f10| 34 2c 20 23 6b 61 79 6e | 65 3a 20 33 2c 20 23 6f |4, #kayn|e: 3, #o|
|00001f20| 68 61 73 69 3a 20 31 5d | 2e 0d 0d 45 78 61 6d 70 |hasi: 1]|...Examp|
|00001f30| 6c 65 00 00 1e 66 00 44 | 00 01 00 00 1f 06 20 32 |le...f.D|...... 2|
|00001f40| 3a 0d 0d 54 68 69 73 20 | 73 74 61 74 65 6d 65 6e |:..This |statemen|
|00001f50| 74 20 61 64 64 73 20 74 | 68 65 20 65 6e 74 72 79 |t adds t|he entry|
|00001f60| 20 6b 61 79 6e 65 3a 20 | 37 20 74 6f 20 74 68 65 | kayne: |7 to the|
|00001f70| 20 6c 69 73 74 20 6e 61 | 6d 65 64 20 62 69 00 00 | list na|med bi..|
|00001f80| 1e b2 00 44 00 01 00 00 | 1f 52 64 73 2c 20 77 68 |...D....|.Rds, wh|
|00001f90| 69 63 68 20 6e 6f 77 20 | 63 6f 6e 74 61 69 6e 73 |ich now |contains|
|00001fa0| 20 5b 23 67 65 65 3a 20 | 34 2c 20 23 6b 61 79 6e | [#gee: |4, #kayn|
|00001fb0| 65 3a 20 33 2c 20 23 6f | 68 61 73 69 3a 20 31 5d |e: 3, #o|hasi: 1]|
|00001fc0| 2e 20 42 65 63 61 75 73 | 65 20 00 00 1e fe 00 44 |. Becaus|e .....D|
|00001fd0| 00 01 00 00 1f 9e 74 68 | 65 20 6c 69 73 74 20 61 |......th|e list a|
|00001fe0| 6c 72 65 61 64 79 20 63 | 6f 6e 74 61 69 6e 73 20 |lready c|ontains |
|00001ff0| 74 68 65 20 70 72 6f 70 | 65 72 74 79 20 6b 61 79 |the prop|erty kay|
|00002000| 6e 65 2c 20 4c 69 6e 67 | 6f 20 63 72 65 61 74 65 |ne, Ling|o create|
|00002010| 73 20 61 20 64 75 00 00 | 1f 4a 00 44 00 01 00 00 |s a du..|.J.D....|
|00002020| 1f ea 70 6c 69 63 61 74 | 65 20 70 72 6f 70 65 72 |..plicat|e proper|
|00002030| 74 79 3a 0d 0d 61 64 64 | 50 72 6f 70 20 62 69 64 |ty:..add|Prop bid|
|00002040| 73 2c 20 23 6b 61 79 6e | 65 2c 20 37 0d 0d 54 68 |s, #kayn|e, 7..Th|
|00002050| 65 20 72 65 73 75 6c 74 | 20 69 73 20 74 68 65 20 |e result| is the |
|00002060| 6c 69 00 00 1f 96 00 44 | 00 01 ff ff ff ff 73 74 |li.....D|......st|
|00002070| 20 5b 23 67 65 65 3a 20 | 34 2c 20 23 6b 61 79 6e | [#gee: |4, #kayn|
|00002080| 65 3a 20 33 2c 20 23 6b | 61 79 6e 65 3a 37 2c 20 |e: 3, #k|ayne:7, |
|00002090| 23 6f 68 61 73 69 3a 20 | 31 5d 2e 0d 00 00 00 00 |#ohasi: |1]......|
|000020a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020b0| 00 00 00 1a 00 22 00 00 | 02 59 00 00 20 58 01 2e |....."..|.Y.. X..|
|000020c0| 00 00 1d 1c 00 00 00 05 | 00 00 21 80 00 00 20 50 |........|..!... P|
|000020d0| 00 00 00 00 00 44 00 ce | 00 00 20 a4 45 78 61 6d |.....D..|.. .Exam|
|000020e0| 70 6c 65 20 31 3a 0d 0d | 54 68 65 20 66 6f 6c 6c |ple 1:..|The foll|
|000020f0| 6f 77 69 6e 67 20 73 74 | 61 74 65 6d 65 6e 74 20 |owing st|atement |
|00002100| 70 72 6f 64 75 63 65 73 | 20 61 6e 20 61 6c 65 72 |produces| an aler|
|00002110| 74 20 73 74 61 74 69 6e | 67 20 74 68 00 00 20 50 |t statin|g th.. P|
|00002120| 00 44 00 ce 00 00 20 f0 | 61 74 20 74 68 65 72 65 |.D.... .|at there|
|00002130| 20 69 73 20 6e 6f 20 43 | 44 d0 52 4f 4d 20 64 72 | is no C|D.ROM dr|
|00002140| 69 76 65 20 63 6f 6e 6e | 65 63 74 65 64 3a 0d 0d |ive conn|ected:..|
|00002150| 61 6c 65 72 74 20 22 54 | 68 65 72 65 20 69 73 20 |alert "T|here is |
|00002160| 6e 6f 20 43 44 2d 52 4f | 00 00 20 9c 00 44 00 01 |no CD-RO|.. ..D..|
|00002170| 00 00 21 3c 4d 20 64 72 | 69 76 65 20 c2 0d 63 6f |..!<M dr|ive ..co|
|00002180| 6e 6e 65 63 74 65 64 2e | 22 0d 0d 45 78 61 6d 70 |nnected.|"..Examp|
|00002190| 6c 65 20 32 3a 0d 0d 54 | 68 69 73 20 73 74 61 74 |le 2:..T|his stat|
|000021a0| 65 6d 65 6e 74 20 70 72 | 6f 64 75 63 65 73 20 61 |ement pr|oduces a|
|000021b0| 6e 20 61 6c 00 00 20 e8 | 00 44 00 01 00 00 21 88 |n al.. .|.D....!.|
|000021c0| 65 72 74 20 73 74 61 74 | 69 6e 67 20 74 68 61 74 |ert stat|ing that|
|000021d0| 20 61 20 66 69 6c 65 20 | 77 61 73 20 6e 6f 74 20 | a file |was not |
|000021e0| 66 6f 75 6e 64 3a 20 0d | 0d 61 6c 65 72 74 20 22 |found: .|.alert "|
|000021f0| 54 68 65 20 66 69 6c 65 | 22 20 26 26 20 51 55 4f |The file|" && QUO|
|00002200| 00 00 21 34 00 44 00 01 | ff ff ff ff 54 45 20 26 |..!4.D..|....TE &|
|00002210| 20 66 69 6c 65 6e 61 6d | 65 20 26 20 51 55 4f 54 | filenam|e & QUOT|
|00002220| 45 20 c2 0d 0d 09 26 26 | 20 22 77 61 73 20 6e 6f |E ....&&| "was no|
|00002230| 74 20 66 6f 75 6e 64 2e | 22 0d 00 00 00 00 00 00 |t found.|".......|
|00002240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002250| 00 1a 00 22 00 00 02 5a | 00 00 29 62 06 5c 00 00 |..."...Z|..)b.\..|
|00002260| 20 36 00 00 00 1a 00 00 | 21 ee 00 00 29 5a 00 00 | 6......|!...)Z..|
|00002270| 22 3a 00 44 00 ce ff ff | ff ff 61 70 70 6c 65 22 |":.D....|..apple"|
|00002280| 20 0d 0d 2d 2d 3e 20 22 | 45 61 74 69 6e 67 20 61 | ..--> "|Eating a|
|00002290| 70 70 6c 65 22 0d 00 00 | 00 00 00 00 00 00 00 00 |pple"...|........|
|000022a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 22 86 00 44 |........|...."..D|
|000022c0| 00 ce 00 00 21 f6 0d 2d | 2d 3e 20 32 0d 0d 70 75 |....!..-|-> 2..pu|
|000022d0| 74 20 74 68 65 20 72 61 | 63 65 20 6f 66 20 6d 61 |t the ra|ce of ma|
|000022e0| 6e 43 68 69 6c 64 0d 0d | 2d 2d 3e 20 22 41 66 72 |nChild..|--> "Afr|
|000022f0| 69 63 61 6e 22 0d 0d 65 | 61 74 20 6d 61 6e 43 68 |ican"..e|at manCh|
|00002300| 69 6c 64 2c 20 22 00 00 | 22 d2 00 44 00 01 00 00 |ild, "..|"..D....|
|00002310| 22 42 20 6d 61 6e 43 68 | 69 6c 64 20 74 6f 20 62 |"B manCh|ild to b|
|00002320| 69 72 74 68 28 73 63 72 | 69 70 74 20 22 6d 61 6e |irth(scr|ipt "man|
|00002330| 22 29 0d 0d 70 75 74 20 | 74 68 65 20 6c 65 67 43 |")..put |the legC|
|00002340| 6f 75 6e 74 20 6f 66 20 | 6d 61 6e 43 68 69 6c 64 |ount of |manChild|
|00002350| 20 0d 00 00 23 1e 00 44 | 00 01 00 00 22 8e 20 4c | ...#..D|....". L|
|00002360| 69 6e 67 6f 20 66 69 6e | 64 73 20 74 68 65 20 65 |ingo fin|ds the e|
|00002370| 61 74 20 68 61 6e 64 6c | 65 72 20 69 6e 20 74 68 |at handl|er in th|
|00002380| 65 20 61 6e 63 65 73 74 | 6f 72 20 73 63 72 69 70 |e ancest|or scrip|
|00002390| 74 20 41 6e 69 6d 61 6c | 3a 0d 0d 73 65 74 00 00 |t Animal|:..set..|
|000023a0| 23 6a 00 44 00 01 00 00 | 22 da 65 20 77 69 6e 64 |#j.D....|".e wind|
|000023b0| 6f 77 2e 20 53 69 6e 63 | 65 20 74 68 65 20 65 61 |ow. Sinc|e the ea|
|000023c0| 74 20 68 61 6e 64 6c 65 | 72 20 69 73 20 6e 6f 74 |t handle|r is not|
|000023d0| 20 69 6e 20 74 68 65 20 | 70 61 72 65 6e 74 20 73 | in the |parent s|
|000023e0| 63 72 69 70 74 20 4d 61 | 6e 2c 00 00 23 b6 00 44 |cript Ma|n,..#..D|
|000023f0| 00 01 00 00 23 26 20 77 | 69 6e 64 6f 77 2c 20 61 |....#& w|indow, a|
|00002400| 6e 64 20 63 61 6c 6c 73 | 20 74 68 65 20 65 61 74 |nd calls| the eat|
|00002410| 20 68 61 6e 64 6c 65 72 | 20 61 6e 64 20 64 69 73 | handler| and dis|
|00002420| 70 6c 61 79 73 20 69 74 | 20 69 6e 20 74 68 65 20 |plays it| in the |
|00002430| 6d 65 73 73 61 67 00 00 | 24 02 00 44 00 01 00 00 |messag..|$..D....|
|00002440| 23 72 74 65 73 20 61 20 | 63 68 69 6c 64 20 6f 62 |#rtes a |child ob|
|00002450| 6a 65 63 74 20 6f 66 20 | 4d 61 6e 2c 20 64 69 73 |ject of |Man, dis|
|00002460| 70 6c 61 79 73 20 69 74 | 73 20 76 61 72 69 61 62 |plays it|s variab|
|00002470| 6c 65 73 20 69 6e 20 74 | 68 65 20 6d 65 73 73 61 |les in t|he messa|
|00002480| 67 65 00 00 24 4e 00 44 | 00 01 00 00 23 be 0d 0d |ge..$N.D|....#...|
|00002490| 09 70 75 74 20 22 45 61 | 74 69 6e 67 20 22 20 26 |.put "Ea|ting " &|
|000024a0| 20 77 68 61 74 0d 0d 65 | 6e 64 0d 0d 45 78 61 6d | what..e|nd..Exam|
|000024b0| 70 6c 65 20 34 3a 0d 0d | 54 68 65 20 66 6f 75 72 |ple 4:..|The four|
|000024c0| 74 68 20 73 63 72 69 70 | 74 20 63 72 65 61 00 00 |th scrip|t crea..|
|000024d0| 24 9a 00 44 00 01 00 00 | 24 0a 74 79 20 6c 65 67 |$..D....|$.ty leg|
|000024e0| 43 6f 75 6e 74 0d 0d 6f | 6e 20 62 69 72 74 68 20 |Count..o|n birth |
|000024f0| 6d 65 0d 0d 09 72 65 74 | 75 72 6e 20 6d 65 0d 0d |me...ret|urn me..|
|00002500| 65 6e 64 20 62 69 72 74 | 68 0d 0d 6f 6e 20 65 61 |end birt|h..on ea|
|00002510| 74 20 6d 65 2c 20 77 68 | 61 74 00 00 24 e6 00 44 |t me, wh|at..$..D|
|00002520| 00 00 00 00 24 56 43 6f | 75 6e 74 20 66 6f 72 20 |....$VCo|unt for |
|00002530| 65 61 63 68 20 63 68 69 | 6c 64 20 6f 62 6a 65 63 |each chi|ld objec|
|00002540| 74 20 61 6e 64 20 64 65 | 66 69 6e 65 73 20 74 68 |t and de|fines th|
|00002550| 65 20 65 61 74 20 68 61 | 6e 64 6c 65 72 3a 0d 0d |e eat ha|ndler:..|
|00002560| 70 72 6f 70 65 72 00 00 | 25 32 00 44 00 01 00 00 |proper..|%2.D....|
|00002570| 24 a2 70 6c 65 20 33 3a | 0d 0d 54 68 65 20 74 68 |$.ple 3:|..The th|
|00002580| 69 72 64 20 73 63 72 69 | 70 74 20 41 6e 69 6d 61 |ird scri|pt Anima|
|00002590| 6c 20 73 74 6f 72 65 73 | 20 74 68 65 20 70 72 6f |l stores| the pro|
|000025a0| 70 65 72 74 79 20 76 61 | 72 69 61 62 6c 65 20 6c |perty va|riable l|
|000025b0| 65 67 00 00 25 7e 00 44 | 00 01 00 00 24 ee 6d 61 |eg..%~.D|....$.ma|
|000025c0| 6c 22 29 0d 0d 09 73 65 | 74 20 74 68 65 20 6c 65 |l")...se|t the le|
|000025d0| 67 43 6f 75 6e 74 20 6f | 66 20 6d 65 20 74 6f 20 |gCount o|f me to |
|000025e0| 32 0d 0d 09 72 65 74 75 | 72 6e 20 6d 65 0d 0d 65 |2...retu|rn me..e|
|000025f0| 6e 64 20 62 69 72 74 68 | 0d 0d 45 78 61 6d 00 00 |nd birth|..Exam..|
|00002600| 25 ca 00 44 00 01 00 00 | 25 3a 68 20 6d 65 0d 0d |%..D....|%:h me..|
|00002610| 09 73 65 74 20 72 61 63 | 65 20 74 6f 20 22 41 66 |.set rac|e to "Af|
|00002620| 72 69 63 61 6e 22 0d 0d | 09 73 65 74 20 61 6e 63 |rican"..|.set anc|
|00002630| 65 73 74 6f 72 20 74 6f | 20 62 69 72 74 68 28 73 |estor to| birth(s|
|00002640| 63 72 69 70 74 20 22 41 | 6e 69 00 00 26 16 00 44 |cript "A|ni..&..D|
|00002650| 00 01 00 00 25 86 64 20 | 69 6e 20 74 68 65 20 61 |....%.d |in the a|
|00002660| 6e 63 65 73 74 6f 72 20 | 73 63 72 69 70 74 20 74 |ncestor |script t|
|00002670| 6f 20 32 3a 0d 0d 70 72 | 6f 70 65 72 74 79 20 72 |o 2:..pr|operty r|
|00002680| 61 63 65 2c 20 61 6e 63 | 65 73 74 6f 72 0d 0d 6f |ace, anc|estor..o|
|00002690| 6e 20 62 69 72 74 00 00 | 26 62 00 44 00 01 00 00 |n birt..|&b.D....|
|000026a0| 25 d2 20 74 68 65 20 41 | 6e 69 6d 61 6c 20 73 63 |%. the A|nimal sc|
|000026b0| 72 69 70 74 3b 20 61 6e | 64 20 73 65 74 73 20 74 |ript; an|d sets t|
|000026c0| 68 65 20 6c 65 67 43 6f | 75 6e 74 20 76 61 72 69 |he legCo|unt vari|
|000026d0| 61 62 6c 65 20 74 68 61 | 74 20 69 73 20 73 74 6f |able tha|t is sto|
|000026e0| 72 65 00 00 26 ae 00 44 | 00 01 00 00 26 1e 65 20 |re..&..D|....&.e |
|000026f0| 70 72 6f 70 65 72 74 79 | 20 76 61 72 69 61 62 6c |property| variabl|
|00002700| 65 20 72 61 63 65 20 74 | 6f 20 41 66 72 69 63 61 |e race t|o Africa|
|00002710| 6e 3b 20 73 65 74 73 20 | 74 68 65 20 61 6e 63 65 |n; sets |the ance|
|00002720| 73 74 6f 72 20 6f 66 20 | 4d 61 6e 20 74 6f 00 00 |stor of |Man to..|
|00002730| 26 fa 00 44 00 01 00 00 | 26 6a 09 72 65 74 75 72 |&..D....|&j.retur|
|00002740| 6e 20 6d 65 0d 0d 65 6e | 64 20 62 69 72 74 68 0d |n me..en|d birth.|
|00002750| 0d 45 78 61 6d 70 6c 65 | 20 32 3a 0d 0d 54 68 65 |.Example| 2:..The|
|00002760| 20 73 65 63 6f 6e 64 20 | 73 63 72 69 70 74 20 4d | second |script M|
|00002770| 61 6e 20 73 65 74 73 20 | 74 68 00 00 27 46 00 44 |an sets |th..'F.D|
|00002780| 00 01 00 00 26 b6 6f 66 | 20 6d 65 20 74 6f 20 62 |....&.of| me to b|
|00002790| 69 72 74 68 28 73 63 72 | 69 70 74 20 22 41 6e 69 |irth(scr|ipt "Ani|
|000027a0| 6d 61 6c 22 29 0d 0d 09 | 73 65 74 20 74 68 65 20 |mal")...|set the |
|000027b0| 6c 65 67 43 6f 75 6e 74 | 20 6f 66 20 6d 65 20 74 |legCount| of me t|
|000027c0| 6f 20 34 20 0d 0d 00 00 | 27 92 00 44 00 01 00 00 |o 4 ....|'..D....|
|000027d0| 27 02 65 64 2c 20 61 6e | 63 65 73 74 6f 72 0d 0d |'.ed, an|cestor..|
|000027e0| 6f 6e 20 62 69 72 74 68 | 20 6d 65 0d 0d 09 73 65 |on birth| me...se|
|000027f0| 74 20 20 62 72 65 65 64 | 20 3d 20 22 4d 75 74 74 |t breed| = "Mutt|
|00002800| 22 20 0d 0d 09 73 65 74 | 20 61 6e 63 65 73 74 6f |" ...set| ancesto|
|00002810| 72 20 00 00 27 de 00 44 | 00 01 00 00 27 4e 72 69 |r ..'..D|....'Nri|
|00002820| 61 62 6c 65 20 74 68 61 | 74 20 69 73 20 73 74 6f |able tha|t is sto|
|00002830| 72 65 64 20 69 6e 20 74 | 68 65 20 61 6e 63 65 73 |red in t|he ances|
|00002840| 74 6f 72 20 73 63 72 69 | 70 74 20 74 6f 20 34 3a |tor scri|pt to 4:|
|00002850| 0d 0d 70 72 6f 70 65 72 | 74 79 20 62 72 65 00 00 |..proper|ty bre..|
|00002860| 28 2a 00 44 00 01 00 00 | 27 9a 65 20 61 6e 63 65 |(*.D....|'.e ance|
|00002870| 73 74 6f 72 20 6f 66 20 | 44 6f 67 20 74 6f 20 74 |stor of |Dog to t|
|00002880| 68 65 20 41 6e 69 6d 61 | 6c 20 73 63 72 69 70 74 |he Anima|l script|
|00002890| 3b 20 61 6e 64 20 73 65 | 74 73 20 74 68 65 20 6c |; and se|ts the l|
|000028a0| 65 67 43 6f 75 6e 74 20 | 76 61 00 00 28 76 00 44 |egCount |va..(v.D|
|000028b0| 00 01 00 00 27 e6 72 73 | 74 20 73 63 72 69 70 74 |....'.rs|t script|
|000028c0| 20 44 6f 67 20 73 65 74 | 73 20 74 68 65 20 70 72 | Dog set|s the pr|
|000028d0| 6f 70 65 72 74 79 20 76 | 61 72 69 61 62 6c 65 20 |operty v|ariable |
|000028e0| 62 72 65 65 64 20 74 6f | 20 4d 75 74 74 3b 20 73 |breed to| Mutt; s|
|000028f0| 65 74 73 20 74 68 00 00 | 28 c2 00 44 00 01 00 00 |ets th..|(..D....|
|00002900| 28 32 69 6e 74 65 72 61 | 63 74 20 77 69 74 68 20 |(2intera|ct with |
|00002910| 6f 6e 65 20 61 6e 6f 74 | 68 65 72 20 74 6f 20 64 |one anot|her to d|
|00002920| 65 66 69 6e 65 20 6f 62 | 6a 65 63 74 73 2e 0d 0d |efine ob|jects...|
|00002930| 45 78 61 6d 70 6c 65 20 | 31 3a 0d 0d 54 68 65 20 |Example |1:..The |
|00002940| 66 69 00 00 29 0e 00 44 | 00 01 00 00 28 7e 61 6e |fi..)..D|....(~an|
|00002950| 63 65 73 74 6f 72 20 73 | 63 72 69 70 74 20 41 6e |cestor s|cript An|
|00002960| 69 6d 61 6c 20 61 6e 64 | 20 74 68 65 20 70 61 72 |imal and| the par|
|00002970| 65 6e 74 20 73 63 72 69 | 70 74 73 20 44 6f 67 20 |ent scri|pts Dog |
|00002980| 61 6e 64 20 4d 61 6e 2c | 20 74 68 65 79 20 00 00 |and Man,| they ..|
|00002990| 29 5a 00 44 00 01 00 00 | 28 ca 74 6f 72 20 70 72 |)Z.D....|(.tor pr|
|000029a0| 6f 70 65 72 74 79 2e 20 | 45 61 63 68 20 6f 66 20 |operty. |Each of |
|000029b0| 74 68 65 73 65 20 73 63 | 72 69 70 74 73 20 69 73 |these sc|ripts is|
|000029c0| 20 61 20 63 61 73 74 20 | 6d 65 6d 62 65 72 2e 20 | a cast |member. |
|000029d0| 55 73 69 6e 67 20 74 68 | 65 20 00 00 00 00 00 44 |Using th|e .....D|
|000029e0| 00 01 00 00 29 16 54 68 | 65 20 66 6f 6c 6c 6f 77 |....).Th|e follow|
|000029f0| 69 6e 67 20 66 6f 75 72 | 20 73 63 72 69 70 74 73 |ing four| scripts|
|00002a00| 20 70 72 65 73 65 6e 74 | 20 61 6e 20 65 78 61 6d | present| an exam|
|00002a10| 70 6c 65 20 6f 66 20 75 | 73 69 6e 67 20 74 68 65 |ple of u|sing the|
|00002a20| 20 61 6e 63 65 73 00 00 | 00 00 00 1a 00 22 00 00 | ances..|....."..|
|00002a30| 02 5b 00 00 29 d0 01 dd | 00 00 21 d4 00 00 00 08 |.[..)...|..!.....|
|00002a40| 00 00 2b dc 00 00 29 c8 | 00 00 00 00 00 44 00 ce |..+...).|.....D..|
|00002a50| 00 00 2a 1c 45 78 61 6d | 70 6c 65 20 31 3a 0d 0d |..*.Exam|ple 1:..|
|00002a60| 54 68 69 73 20 73 74 61 | 74 65 6d 65 6e 74 20 64 |This sta|tement d|
|00002a70| 65 74 65 72 6d 69 6e 65 | 73 20 77 68 65 74 68 65 |etermine|s whethe|
|00002a80| 72 20 62 6f 74 68 20 6c | 6f 67 69 63 61 6c 20 65 |r both l|ogical e|
|00002a90| 78 70 72 65 00 00 29 c8 | 00 44 00 ce 00 00 2a 68 |xpre..).|.D....*h|
|00002aa0| 73 73 69 6f 6e 73 20 61 | 72 65 20 54 52 55 45 20 |ssions a|re TRUE |
|00002ab0| 61 6e 64 20 64 69 73 70 | 6c 61 79 73 20 74 68 65 |and disp|lays the|
|00002ac0| 20 72 65 73 75 6c 74 20 | 69 6e 20 74 68 65 20 6d | result |in the m|
|00002ad0| 65 73 73 61 67 65 20 77 | 69 6e 64 6f 77 3a 0d 0d |essage w|indow:..|
|00002ae0| 00 00 2a 14 00 44 00 01 | 00 00 2a b4 70 75 74 20 |..*..D..|..*.put |
|00002af0| 31 20 3c 20 32 20 61 6e | 64 20 32 20 3c 20 33 0d |1 < 2 an|d 2 < 3.|
|00002b00| 0d 54 68 65 20 72 65 73 | 75 6c 74 20 69 73 20 31 |.The res|ult is 1|
|00002b10| 2c 20 77 68 69 63 68 20 | 69 73 20 74 68 65 20 6e |, which |is the n|
|00002b20| 75 6d 65 72 69 63 61 6c | 20 65 71 75 00 00 2a 60 |umerical| equ..*`|
|00002b30| 00 44 00 01 00 00 2b 00 | 69 76 61 6c 65 6e 74 20 |.D....+.|ivalent |
|00002b40| 6f 66 20 54 52 55 45 2e | 0d 0d 45 78 61 6d 70 6c |of TRUE.|..Exampl|
|00002b50| 65 20 32 3a 0d 0d 54 68 | 65 20 66 69 72 73 74 20 |e 2:..Th|e first |
|00002b60| 6c 6f 67 69 63 61 6c 20 | 65 78 70 72 65 73 73 69 |logical |expressi|
|00002b70| 6f 6e 20 69 6e 20 74 68 | 00 00 2a ac 00 44 00 01 |on in th|..*..D..|
|00002b80| 00 00 2b 4c 69 73 20 73 | 74 61 74 65 6d 65 6e 74 |..+Lis s|tatement|
|00002b90| 20 69 73 20 54 52 55 45 | 3b 20 74 68 65 20 73 65 | is TRUE|; the se|
|00002ba0| 63 6f 6e 64 20 6c 6f 67 | 69 63 61 6c 20 65 78 70 |cond log|ical exp|
|00002bb0| 72 65 73 73 69 6f 6e 20 | 69 73 20 46 41 4c 53 45 |ression |is FALSE|
|00002bc0| 2e 20 42 65 00 00 2a f8 | 00 44 00 01 00 00 2b 98 |. Be..*.|.D....+.|
|00002bd0| 63 61 75 73 65 20 62 6f | 74 68 20 6c 6f 67 69 63 |cause bo|th logic|
|00002be0| 61 6c 20 65 78 70 72 65 | 73 73 69 6f 6e 73 20 61 |al expre|ssions a|
|00002bf0| 72 65 20 6e 6f 74 20 54 | 52 55 45 2c 20 74 68 65 |re not T|RUE, the|
|00002c00| 20 6c 6f 67 69 63 61 6c | 20 6f 70 65 72 61 74 6f | logical| operato|
|00002c10| 00 00 2b 44 00 44 00 01 | 00 00 2b e4 72 20 67 69 |..+D.D..|..+.r gi|
|00002c20| 76 65 73 20 74 68 65 20 | 72 65 73 75 6c 74 20 30 |ves the |result 0|
|00002c30| 2c 20 77 68 69 63 68 20 | 69 73 20 74 68 65 20 6e |, which |is the n|
|00002c40| 75 6d 65 72 69 63 61 6c | 20 65 71 75 69 76 61 6c |umerical| equival|
|00002c50| 65 6e 74 20 6f 66 20 46 | 41 4c 53 45 00 00 2b 90 |ent of F|ALSE..+.|
|00002c60| 00 44 00 01 ff ff ff ff | 3a 0d 0d 70 75 74 20 31 |.D......|:..put 1|
|00002c70| 20 3c 20 32 20 61 6e 64 | 20 32 20 3c 20 31 0d 0d | < 2 and| 2 < 1..|
|00002c80| 2d 2d 20 30 0d 00 00 00 | 00 00 00 00 00 00 00 00 |-- 0....|........|
|00002c90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 1a 00 22 |........|......."|
|00002cb0| 00 00 02 5c 00 00 2c 52 | 00 f5 00 00 29 ae 00 00 |...\..,R|....)...|
|00002cc0| 00 04 00 00 2d 2e 00 00 | 2c 4a 00 00 00 00 00 44 |....-...|,J.....D|
|00002cd0| 00 ce 00 00 2c 9e 54 68 | 69 73 20 73 74 61 74 65 |....,.Th|is state|
|00002ce0| 6d 65 6e 74 20 61 64 64 | 73 20 74 68 65 20 76 61 |ment add|s the va|
|00002cf0| 6c 75 65 20 32 20 61 74 | 20 74 68 65 20 65 6e 64 |lue 2 at| the end|
|00002d00| 20 6f 66 20 74 68 65 20 | 73 6f 72 74 65 64 20 6c | of the |sorted l|
|00002d10| 69 73 74 20 6e 61 00 00 | 2c 4a 00 44 00 ce 00 00 |ist na..|,J.D....|
|00002d20| 2c ea 6d 65 64 20 62 69 | 64 73 2c 20 77 68 69 63 |,.med bi|ds, whic|
|00002d30| 68 20 63 6f 6e 74 61 69 | 6e 73 20 5b 31 2c 20 33 |h contai|ns [1, 3|
|00002d40| 2c 20 34 5d 20 65 76 65 | 6e 20 74 68 6f 75 67 68 |, 4] eve|n though|
|00002d50| 20 74 68 69 73 20 69 73 | 20 6e 6f 74 20 61 63 63 | this is| not acc|
|00002d60| 6f 72 00 00 2c 96 00 44 | 00 01 00 00 2d 36 64 69 |or..,..D|....-6di|
|00002d70| 6e 67 20 74 6f 20 74 68 | 65 20 6c 69 73 74 d5 73 |ng to th|e list.s|
|00002d80| 20 73 6f 72 74 65 64 20 | 6f 72 64 65 72 3a 0d 0d | sorted |order:..|
|00002d90| 73 65 74 20 62 69 64 73 | 20 3d 20 5b 31 2c 20 33 |set bids| = [1, 3|
|00002da0| 2c 20 34 5d 0d 0d 61 70 | 70 65 6e 64 20 62 00 00 |, 4]..ap|pend b..|
|00002db0| 2c e2 00 44 00 01 ff ff | ff ff 69 64 73 2c 20 32 |,..D....|..ids, 2|
|00002dc0| 0d 0d 54 68 65 20 72 65 | 73 75 6c 74 69 6e 67 20 |..The re|sulting |
|00002dd0| 76 61 6c 75 65 20 6f 66 | 20 62 69 64 73 20 69 73 |value of| bids is|
|00002de0| 20 5b 31 2c 20 33 2c 20 | 34 2c 20 32 5d 2e 0d 00 | [1, 3, |4, 2]...|
|00002df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 1a |........|........|
|00002e00| 00 22 00 00 02 5d 00 00 | 2d a4 00 47 00 00 2c 30 |."...]..|-..G..,0|
|00002e10| 00 00 00 02 00 00 2d e8 | 00 00 2d 9c 00 00 00 00 |......-.|..-.....|
|00002e20| 00 44 00 ce 00 00 2d f0 | 54 68 69 73 20 65 78 70 |.D....-.|This exp|
|00002e30| 72 65 73 73 69 6f 6e 20 | 67 69 76 65 73 20 74 68 |ression |gives th|
|00002e40| 65 20 61 72 63 74 61 6e | 67 65 6e 74 20 6f 66 20 |e arctan|gent of |
|00002e50| 70 69 2f 34 20 72 61 64 | 69 61 6e 73 3a 0d 0d 61 |pi/4 rad|ians:..a|
|00002e60| 74 61 6e 20 28 70 69 28 | 00 00 2d 9c 00 44 00 ce |tan (pi(|..-..D..|
|00002e70| ff ff ff ff 29 2f 34 2e | 30 29 0d 00 00 00 00 00 |....)/4.|0)......|
|00002e80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002eb0| 00 00 00 00 00 00 00 00 | 00 1a 00 22 00 00 06 6a |........|..."...j|
|00002ec0| 00 00 2e f6 00 85 00 00 | 2d 82 00 00 00 03 00 00 |........|-.......|
|00002ed0| 2e 56 00 00 2e ee 00 00 | 2e a2 00 44 00 ce ff ff |.V......|...D....|
|00002ee0| ff ff 20 32 35 30 0d 00 | 00 00 00 00 00 00 00 00 |.. 250..|........|
|00002ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f20| 00 00 00 00 2e ee 00 44 | 00 ce 00 00 2e 5e 20 74 |.......D|.....^ t|
|00002f30| 68 65 20 63 6f 6c 6f 72 | 20 69 6e 20 70 61 6c 65 |he color| in pale|
|00002f40| 74 74 65 20 65 6e 74 72 | 79 20 32 35 30 2e 0d 0d |tte entr|y 250...|
|00002f50| 73 65 74 20 74 68 65 20 | 62 61 63 6b 43 6f 6c 6f |set the |backColo|
|00002f60| 72 20 6f 66 20 63 61 73 | 74 20 31 20 74 6f 00 00 |r of cas|t 1 to..|
|00002f70| 00 00 00 44 00 01 00 00 | 2e aa 54 68 69 73 20 73 |...D....|..This s|
|00002f80| 74 61 74 65 6d 65 6e 74 | 20 63 68 61 6e 67 65 73 |tatement| changes|
|00002f90| 20 74 68 65 20 63 6f 6c | 6f 72 20 6f 66 20 74 68 | the col|or of th|
|00002fa0| 65 20 74 65 78 74 20 69 | 6e 20 63 61 73 74 20 6d |e text i|n cast m|
|00002fb0| 65 6d 62 65 72 20 31 20 | 74 6f 00 00 00 00 00 1a |ember 1 |to......|
|00002fc0| 00 22 00 00 02 5e 00 00 | 30 e0 01 53 00 00 2e 3c |."...^..|0..S...<|
|00002fd0| 00 00 00 06 00 00 2f 5c | 00 00 30 d8 00 00 2f a8 |....../\|..0.../.|
|00002fe0| 00 44 00 ce ff ff ff ff | 2b 20 72 61 6e 64 6f 6d |.D......|+ random|
|00002ff0| 28 33 29 29 20 74 6f 20 | 33 36 0d 00 00 00 00 00 |(3)) to |36......|
|00003000| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003020| 00 00 00 00 00 00 00 00 | 00 00 2f f4 00 44 00 ce |........|../..D..|
|00003030| 00 00 2f 64 20 73 70 72 | 69 74 65 20 31 33 20 74 |../d spr|ite 13 t|
|00003040| 6f 20 63 6f 6c 6f 72 20 | 6e 75 6d 62 65 72 20 33 |o color |number 3|
|00003050| 36 3a 0d 0d 73 65 74 20 | 74 68 65 20 62 61 63 6b |6:..set |the back|
|00003060| 43 6f 6c 6f 72 20 6f 66 | 20 73 70 72 69 74 65 20 |Color of| sprite |
|00003070| 28 31 30 20 00 00 30 40 | 00 44 00 01 00 00 2f b0 |(10 ..0@|.D..../.|
|00003080| 68 61 6e 67 65 73 20 74 | 68 65 20 62 61 63 6b 67 |hanges t|he backg|
|00003090| 72 6f 75 6e 64 20 63 6f | 6c 6f 72 20 6f 66 20 61 |round co|lor of a|
|000030a0| 20 72 61 6e 64 6f 6d 20 | 73 70 72 69 74 65 20 66 | random |sprite f|
|000030b0| 72 6f 6d 20 73 70 72 69 | 74 65 20 31 31 20 74 6f |rom spri|te 11 to|
|000030c0| 00 00 30 8c 00 44 00 01 | 00 00 2f fc 20 35 20 69 |..0..D..|../. 5 i|
|000030d0| 6e 74 6f 20 6f 6c 64 43 | 6f 6c 6f 72 0d 0d 45 78 |nto oldC|olor..Ex|
|000030e0| 61 6d 70 6c 65 20 32 3a | 0d 0d 54 68 65 20 66 6f |ample 2:|..The fo|
|000030f0| 6c 6c 6f 77 69 6e 67 20 | 73 74 61 74 65 6d 65 6e |llowing |statemen|
|00003100| 74 20 72 61 6e 64 6f 6d | 6c 79 20 63 00 00 30 d8 |t random|ly c..0.|
|00003110| 00 44 00 01 00 00 30 48 | 6f 20 74 68 65 20 62 61 |.D....0H|o the ba|
|00003120| 63 6b 67 72 6f 75 6e 64 | 20 63 6f 6c 6f 72 20 6f |ckground| color o|
|00003130| 66 20 73 70 72 69 74 65 | 20 35 3a 0d 0d 70 75 74 |f sprite| 5:..put|
|00003140| 20 74 68 65 20 62 61 63 | 6b 43 6f 6c 6f 72 20 6f | the bac|kColor o|
|00003150| 66 20 73 70 72 69 74 65 | 00 00 00 00 00 44 00 01 |f sprite|.....D..|
|00003160| 00 00 30 94 45 78 61 6d | 70 6c 65 20 31 3a 0d 0d |..0.Exam|ple 1:..|
|00003170| 54 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 73 74 |The foll|owing st|
|00003180| 61 74 65 6d 65 6e 74 20 | 73 65 74 73 20 74 68 65 |atement |sets the|
|00003190| 20 76 61 72 69 61 62 6c | 65 20 6f 6c 64 43 6f 6c | variabl|e oldCol|
|000031a0| 6f 72 20 74 00 00 00 00 | 00 1a 00 22 00 00 02 5f |or t....|..."..._|
|000031b0| 00 00 31 4e 00 d4 00 00 | 2f 42 00 00 00 04 00 00 |..1N....|/B......|
|000031c0| 32 2a 00 00 31 46 00 00 | 00 00 00 44 00 ce 00 00 |2*..1F..|...D....|
|000031d0| 31 9a 54 68 69 73 20 6f | 6e 20 6b 65 79 44 6f 77 |1.This o|n keyDow|
|000031e0| 6e 20 68 61 6e 64 6c 65 | 72 20 63 68 65 63 6b 73 |n handle|r checks|
|000031f0| 20 77 68 65 74 68 65 72 | 20 74 68 65 20 62 61 63 | whether| the bac|
|00003200| 6b 73 70 61 63 65 20 6b | 65 79 20 77 61 73 20 70 |kspace k|ey was p|
|00003210| 72 65 00 00 31 46 00 44 | 00 ce 00 00 31 e6 73 73 |re..1F.D|....1.ss|
|00003220| 65 64 20 61 6e 64 2c 20 | 69 66 20 69 74 20 77 61 |ed and, |if it wa|
|00003230| 73 2c 20 63 61 6c 6c 73 | 20 74 68 65 20 61 75 74 |s, calls| the aut|
|00003240| 68 6f 72 2d 64 65 66 69 | 6e 65 64 20 68 61 6e 64 |hor-defi|ned hand|
|00003250| 6c 65 72 20 63 6c 65 61 | 72 46 69 65 6c 64 00 00 |ler clea|rField..|
|00003260| 31 92 00 44 00 01 00 00 | 32 32 3a 0d 0d 6f 6e 20 |1..D....|22:..on |
|00003270| 6b 65 79 44 6f 77 6e 0d | 0d 09 69 66 20 74 68 65 |keyDown.|..if the|
|00003280| 20 6b 65 79 20 3d 20 42 | 41 43 4b 53 50 41 43 45 | key = B|ACKSPACE|
|00003290| 20 74 68 65 6e 20 63 6c | 65 61 72 46 69 65 6c 64 | then cl|earField|
|000032a0| 0d 0d 09 64 6f 6e 74 50 | 61 73 00 00 31 de 00 44 |...dontP|as..1..D|
|000032b0| 00 01 ff ff ff ff 73 45 | 76 65 6e 74 0d 0d 65 6e |......sE|vent..en|
|000032c0| 64 20 6b 65 79 44 6f 77 | 6e 0d 00 00 00 00 00 00 |d keyDow|n.......|
|000032d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032f0| 00 00 00 00 00 00 00 00 | 00 00 00 1a 00 22 00 00 |........|....."..|
|00003300| 02 60 00 00 32 a0 00 e7 | 00 00 31 2c 00 00 00 04 |.`..2...|..1,....|
|00003310| 00 00 33 7c 00 00 32 98 | 00 00 00 00 00 44 00 ce |..3|..2.|.....D..|
|00003320| 00 00 32 ec 45 78 61 6d | 70 6c 65 20 31 3a 0d 0d |..2.Exam|ple 1:..|
|00003330| 54 68 69 73 20 73 74 61 | 74 65 6d 65 6e 74 20 63 |This sta|tement c|
|00003340| 61 75 73 65 73 20 74 77 | 6f 20 62 65 65 70 73 20 |auses tw|o beeps |
|00003350| 69 66 20 74 68 65 20 74 | 65 78 74 20 66 69 65 6c |if the t|ext fiel|
|00003360| 64 20 41 6e 00 00 32 98 | 00 44 00 ce 00 00 33 38 |d An..2.|.D....38|
|00003370| 73 77 65 72 20 69 73 20 | 65 6d 70 74 79 3a 0d 0d |swer is |empty:..|
|00003380| 69 66 20 66 69 65 6c 64 | 20 22 41 6e 73 77 65 72 |if field| "Answer|
|00003390| 22 20 3d 20 45 4d 50 54 | 59 20 74 68 65 6e 20 62 |" = EMPT|Y then b|
|000033a0| 65 65 70 20 32 0d 0d 45 | 78 61 6d 70 6c 65 20 32 |eep 2..E|xample 2|
|000033b0| 00 00 32 e4 00 44 00 01 | 00 00 33 84 3a 0d 0d 54 |..2..D..|..3.:..T|
|000033c0| 68 69 73 20 68 61 6e 64 | 6c 65 72 20 63 61 75 73 |his hand|ler caus|
|000033d0| 65 73 20 75 70 20 74 6f | 20 74 68 72 65 65 20 62 |es up to| three b|
|000033e0| 65 65 70 73 20 77 68 65 | 6e 65 76 65 72 20 61 20 |eeps whe|never a |
|000033f0| 6b 65 79 20 69 73 20 70 | 72 65 73 73 00 00 33 30 |key is p|ress..30|
|00003400| 00 44 00 01 ff ff ff ff | 65 64 3a 0d 0d 6f 6e 20 |.D......|ed:..on |
|00003410| 6b 65 79 44 6f 77 6e 20 | 0d 0d 09 62 65 65 70 20 |keyDown |...beep |
|00003420| 72 61 6e 64 6f 6d 28 33 | 29 0d 0d 65 6e 64 0d 00 |random(3|)..end..|
|00003430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 1a 00 22 |........|......."|
|00003450| 00 00 02 61 00 00 33 f2 | 01 7b 00 00 32 7e 00 00 |...a..3.|.{..2~..|
|00003460| 00 06 00 00 35 66 00 00 | 33 ea 00 00 00 00 00 44 |....5f..|3......D|
|00003470| 00 ce 00 00 34 3e 45 78 | 61 6d 70 6c 65 20 31 3a |....4>Ex|ample 1:|
|00003480| 0d 0d 54 68 69 73 20 73 | 74 61 74 65 6d 65 6e 74 |..This s|tatement|
|00003490| 20 64 69 73 70 6c 61 79 | 73 20 61 6e 20 61 6c 65 | display|s an ale|
|000034a0| 72 74 20 74 65 6c 6c 69 | 6e 67 20 74 68 65 20 75 |rt telli|ng the u|
|000034b0| 73 65 72 20 74 6f 00 00 | 33 ea 00 44 00 ce 00 00 |ser to..|3..D....|
|000034c0| 34 8a 20 63 6c 69 63 6b | 20 61 67 61 69 6e 20 77 |4. click| again w|
|000034d0| 68 65 6e 20 74 68 65 20 | 75 73 65 72 20 63 6c 69 |hen the |user cli|
|000034e0| 63 6b 73 20 6f 75 74 73 | 69 64 65 20 61 63 74 69 |cks outs|ide acti|
|000034f0| 76 65 20 73 70 72 69 74 | 65 73 3a 0d 0d 69 66 20 |ve sprit|es:..if |
|00003500| 74 68 00 00 34 36 00 44 | 00 01 00 00 34 d6 65 20 |th..46.D|....4.e |
|00003510| 62 65 65 70 4f 6e 20 3d | 20 54 52 55 45 20 74 68 |beepOn =| TRUE th|
|00003520| 65 6e 20 20 20 61 6c 65 | 72 74 20 22 43 6c 69 63 |en ale|rt "Clic|
|00003530| 6b 20 61 67 61 69 6e 2e | 22 0d 0d 45 78 61 6d 70 |k again.|"..Examp|
|00003540| 6c 65 20 32 3a 0d 0d 54 | 68 69 73 20 73 74 00 00 |le 2:..T|his st..|
|00003550| 34 82 00 44 00 01 00 00 | 35 22 61 74 65 6d 65 6e |4..D....|5"atemen|
|00003560| 74 20 73 65 74 73 20 74 | 68 65 20 62 65 65 70 4f |t sets t|he beepO|
|00003570| 6e 20 70 72 6f 70 65 72 | 74 79 20 74 6f 20 54 52 |n proper|ty to TR|
|00003580| 55 45 3a 0d 0d 73 65 74 | 20 74 68 65 20 62 65 65 |UE:..set| the bee|
|00003590| 70 4f 6e 20 74 6f 20 54 | 52 55 00 00 34 ce 00 44 |pOn to T|RU..4..D|
|000035a0| 00 01 00 00 35 6e 45 20 | 0d 0d 45 78 61 6d 70 6c |....5nE |..Exampl|
|000035b0| 65 20 33 3a 0d 0d 54 68 | 69 73 20 73 74 61 74 65 |e 3:..Th|is state|
|000035c0| 6d 65 6e 74 20 73 65 74 | 73 20 74 68 65 20 62 65 |ment set|s the be|
|000035d0| 65 70 4f 6e 20 74 6f 20 | 74 68 65 20 6f 70 70 6f |epOn to |the oppo|
|000035e0| 73 69 74 65 20 6f 00 00 | 35 1a 00 44 00 01 ff ff |site o..|5..D....|
|000035f0| ff ff 66 20 69 74 73 20 | 63 75 72 72 65 6e 74 20 |..f its |current |
|00003600| 73 65 74 74 69 6e 67 3a | 0d 0d 73 65 74 20 74 68 |setting:|..set th|
|00003610| 65 20 62 65 65 70 4f 6e | 20 74 6f 20 28 6e 6f 74 |e beepOn| to (not|
|00003620| 20 74 68 65 20 62 65 65 | 70 4f 6e 29 0d 00 00 00 | the bee|pOn)....|
|00003630| 00 00 00 00 00 00 00 1a | 00 22 00 00 06 6b 00 00 |........|."...k..|
|00003640| 35 dc 04 4a 00 00 33 d0 | 00 00 00 12 00 00 3a e0 |5..J..3.|......:.|
|00003650| 00 00 35 d4 00 00 00 00 | 00 44 00 ce 00 00 36 28 |..5.....|.D....6(|
|00003660| 45 78 61 6d 70 6c 65 20 | 31 3a 0d 0d 54 68 65 73 |Example |1:..Thes|
|00003670| 65 20 73 74 61 74 65 6d | 65 6e 74 73 20 75 73 65 |e statem|ents use|
|00003680| 20 61 20 62 69 72 74 68 | 20 68 61 6e 64 6c 65 72 | a birth| handler|
|00003690| 20 74 6f 20 63 72 65 61 | 74 65 20 61 20 63 68 69 | to crea|te a chi|
|000036a0| 00 00 35 d4 00 44 00 ce | 00 00 36 74 6c 64 20 6f |..5..D..|..6tld o|
|000036b0| 62 6a 65 63 74 20 6f 66 | 20 61 20 70 61 72 65 6e |bject of| a paren|
|000036c0| 74 20 73 63 72 69 70 74 | 2e 20 54 68 65 20 70 61 |t script|. The pa|
|000036d0| 72 65 6e 74 20 73 63 72 | 69 70 74 20 69 73 20 61 |rent scr|ipt is a|
|000036e0| 20 6d 6f 76 69 65 20 73 | 63 72 69 70 00 00 36 20 | movie s|crip..6 |
|000036f0| 00 44 00 01 00 00 36 c0 | 74 20 63 61 73 74 20 6d |.D....6.|t cast m|
|00003700| 65 6d 62 65 72 20 6e 61 | 6d 65 64 20 42 69 72 64 |ember na|med Bird|
|00003710| 2c 20 77 68 69 63 68 20 | 63 6f 6e 74 61 69 6e 73 |, which |contains|
|00003720| 20 74 68 65 73 65 20 68 | 61 6e 64 6c 65 72 73 3a | these h|andlers:|
|00003730| 0d 0d 6f 6e 20 62 69 72 | 00 00 36 6c 00 44 00 01 |..on bir|..6l.D..|
|00003740| 00 00 37 0c 74 68 20 6d | 65 0d 0d 09 72 65 74 75 |..7.th m|e...retu|
|00003750| 72 6e 20 6d 65 0d 0d 65 | 6e 64 0d 0d 6f 6e 20 66 |rn me..e|nd..on f|
|00003760| 6c 79 20 6d 65 0d 0d 09 | 70 75 74 20 22 49 20 61 |ly me...|put "I a|
|00003770| 6d 20 66 6c 79 69 6e 67 | 22 0d 0d 65 6e 64 20 66 |m flying|"..end f|
|00003780| 6c 79 0d 0d 00 00 36 b8 | 00 44 00 01 00 00 37 58 |ly....6.|.D....7X|
|00003790| 45 78 61 6d 70 6c 65 20 | 32 3a 0d 0d 54 68 65 73 |Example |2:..Thes|
|000037a0| 65 20 73 74 61 74 65 6d | 65 6e 74 73 20 63 72 65 |e statem|ents cre|
|000037b0| 61 74 65 20 61 20 63 68 | 69 6c 64 20 6f 62 6a 65 |ate a ch|ild obje|
|000037c0| 63 74 20 63 61 6c 6c 65 | 64 20 6d 79 42 69 72 64 |ct calle|d myBird|
|000037d0| 00 00 37 04 00 44 00 01 | 00 00 37 a4 2c 20 61 6e |..7..D..|..7., an|
|000037e0| 64 20 6d 61 6b 65 20 69 | 74 20 66 6c 79 20 62 79 |d make i|t fly by|
|000037f0| 20 63 61 6c 6c 69 6e 67 | 20 74 68 65 20 66 6c 79 | calling| the fly|
|00003800| 20 68 61 6e 64 6c 65 72 | 20 69 6e 20 74 68 65 20 | handler| in the |
|00003810| 42 69 72 64 20 70 61 72 | 65 6e 74 20 00 00 37 50 |Bird par|ent ..7P|
|00003820| 00 44 00 01 00 00 37 f0 | 73 63 72 69 70 74 3a 0d |.D....7.|script:.|
|00003830| 0d 73 65 74 20 6d 79 42 | 69 72 64 20 74 6f 20 62 |.set myB|ird to b|
|00003840| 69 72 74 68 20 28 73 63 | 72 69 70 74 20 22 42 69 |irth (sc|ript "Bi|
|00003850| 72 64 22 29 0d 0d 66 6c | 79 20 6d 79 42 69 72 64 |rd")..fl|y myBird|
|00003860| 20 0d 0d 45 78 61 6d 70 | 00 00 37 9c 00 44 00 01 | ..Examp|..7..D..|
|00003870| 00 00 38 3c 6c 65 20 33 | 3a 0d 0d 54 68 69 73 20 |..8<le 3|:..This |
|00003880| 65 78 61 6d 70 6c 65 20 | 75 73 65 73 20 61 20 6e |example |uses a n|
|00003890| 65 77 20 42 69 72 64 20 | 70 61 72 65 6e 74 20 73 |ew Bird |parent s|
|000038a0| 63 72 69 70 74 2c 20 77 | 68 69 63 68 20 63 6f 6e |cript, w|hich con|
|000038b0| 74 61 69 6e 00 00 37 e8 | 00 44 00 01 00 00 38 88 |tain..7.|.D....8.|
|000038c0| 73 20 74 68 65 20 70 72 | 6f 70 65 72 74 79 20 76 |s the pr|operty v|
|000038d0| 61 72 69 61 62 6c 65 20 | 73 70 65 65 64 3a 0d 0d |ariable |speed:..|
|000038e0| 70 72 6f 70 65 72 74 79 | 20 73 70 65 65 64 0d 0d |property| speed..|
|000038f0| 6f 6e 20 62 69 72 74 68 | 20 6d 65 2c 20 69 6e 69 |on birth| me, ini|
|00003900| 00 00 38 34 00 44 00 01 | 00 00 38 d4 74 53 70 65 |..84.D..|..8.tSpe|
|00003910| 65 64 0d 0d 09 73 65 74 | 20 73 70 65 65 64 20 74 |ed...set| speed t|
|00003920| 6f 20 69 6e 69 74 53 70 | 65 65 64 0d 0d 09 72 65 |o initSp|eed...re|
|00003930| 74 75 72 6e 20 6d 65 0d | 0d 65 6e 64 0d 0d 6f 6e |turn me.|.end..on|
|00003940| 20 66 6c 79 20 6d 65 0d | 0d 09 70 75 00 00 38 80 | fly me.|..pu..8.|
|00003950| 00 44 00 01 00 00 39 20 | 74 20 22 49 20 61 6d 20 |.D....9 |t "I am |
|00003960| 66 6c 79 69 6e 67 20 61 | 74 20 22 20 26 20 73 70 |flying a|t " & sp|
|00003970| 65 65 64 20 26 20 22 6d | 70 68 22 0d 0d 65 6e 64 |eed & "m|ph"..end|
|00003980| 0d 0d 45 78 61 6d 70 6c | 65 20 34 3a 0d 0d 54 68 |..Exampl|e 4:..Th|
|00003990| 65 20 66 6f 6c 6c 6f 77 | 00 00 38 cc 00 44 00 01 |e follow|..8..D..|
|000039a0| 00 00 39 6c 69 6e 67 20 | 73 74 61 74 65 6d 65 6e |..9ling |statemen|
|000039b0| 74 73 20 63 72 65 61 74 | 65 20 32 20 63 68 69 6c |ts creat|e 2 chil|
|000039c0| 64 20 6f 62 6a 65 63 74 | 73 20 63 61 6c 6c 65 64 |d object|s called|
|000039d0| 20 6d 79 42 69 72 64 31 | 20 61 6e 64 20 6d 79 42 | myBird1| and myB|
|000039e0| 69 72 64 32 00 00 39 18 | 00 44 00 01 00 00 39 b8 |ird2..9.|.D....9.|
|000039f0| 2e 20 57 68 65 6e 20 74 | 68 65 20 66 6c 79 20 68 |. When t|he fly h|
|00003a00| 61 6e 64 6c 65 72 20 69 | 73 20 63 61 6c 6c 65 64 |andler i|s called|
|00003a10| 20 66 72 6f 6d 20 74 68 | 65 20 63 68 69 6c 64 20 | from th|e child |
|00003a20| 6f 62 6a 65 63 74 2c 20 | 74 68 65 20 73 70 65 65 |object, |the spee|
|00003a30| 00 00 39 64 00 44 00 01 | 00 00 3a 04 64 20 6f 66 |..9d.D..|..:.d of|
|00003a40| 20 74 68 65 20 6f 62 6a | 65 63 74 20 69 73 20 64 | the obj|ect is d|
|00003a50| 69 73 70 6c 61 79 65 64 | 20 69 6e 20 74 68 65 20 |isplayed| in the |
|00003a60| 6d 65 73 73 61 67 65 20 | 77 69 6e 64 6f 77 3a 0d |message |window:.|
|00003a70| 0d 73 65 74 20 6d 79 42 | 69 72 64 31 00 00 39 b0 |.set myB|ird1..9.|
|00003a80| 00 44 00 01 00 00 3a 50 | 20 74 6f 20 62 69 72 74 |.D....:P| to birt|
|00003a90| 68 20 28 73 63 72 69 70 | 74 20 22 42 69 72 64 22 |h (scrip|t "Bird"|
|00003aa0| 2c 20 31 35 29 20 0d 0d | 73 65 74 20 6d 79 42 69 |, 15) ..|set myBi|
|00003ab0| 72 64 32 20 74 6f 20 62 | 69 72 74 68 20 28 73 63 |rd2 to b|irth (sc|
|00003ac0| 72 69 70 74 20 22 42 69 | 00 00 39 fc 00 44 00 01 |ript "Bi|..9..D..|
|00003ad0| 00 00 3a 9c 72 64 22 2c | 20 32 35 29 0d 0d 66 6c |..:.rd",| 25)..fl|
|00003ae0| 79 20 6d 79 42 69 72 64 | 31 0d 0d 66 6c 79 20 6d |y myBird|1..fly m|
|00003af0| 79 42 69 72 64 32 0d 0d | 54 68 69 73 20 74 65 78 |yBird2..|This tex|
|00003b00| 74 20 77 6f 75 6c 64 20 | 61 70 70 65 61 72 20 69 |t would |appear i|
|00003b10| 6e 20 74 68 00 00 3a 48 | 00 44 00 01 00 00 3a e8 |n th..:H|.D....:.|
|00003b20| 65 20 6d 65 73 73 61 67 | 65 20 77 69 6e 64 6f 77 |e messag|e window|
|00003b30| 3a 0d 0d 2d 2d 20 22 49 | 20 61 6d 20 66 6c 79 69 |:..-- "I| am flyi|
|00003b40| 6e 67 20 61 74 20 31 35 | 20 6d 70 68 22 0d 0d 2d |ng at 15| mph"..-|
|00003b50| 2d 20 22 49 20 61 6d 20 | 66 6c 79 69 6e 67 20 61 |- "I am |flying a|
|00003b60| 00 00 3a 94 00 44 00 01 | ff ff ff ff 74 20 32 35 |..:..D..|....t 25|
|00003b70| 20 6d 70 68 22 0d 00 00 | 00 00 00 00 00 00 00 00 | mph"...|........|
|00003b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bb0| 00 1a 00 22 00 00 02 63 | 00 00 3b 56 00 e0 00 00 |..."...c|..;V....|
|00003bc0| 35 ba 00 00 00 04 00 00 | 3c 32 00 00 3b 4e 00 00 |5.......|<2..;N..|
|00003bd0| 00 00 00 44 00 ce 00 00 | 3b a2 45 78 61 6d 70 6c |...D....|;.Exampl|
|00003be0| 65 20 31 3a 0d 0d 54 68 | 69 73 20 73 74 61 74 65 |e 1:..Th|is state|
|00003bf0| 6d 65 6e 74 20 73 65 74 | 73 20 74 68 65 20 62 6c |ment set|s the bl|
|00003c00| 65 6e 64 20 76 61 6c 75 | 65 20 6f 66 20 73 70 72 |end valu|e of spr|
|00003c10| 69 74 65 20 33 20 74 6f | 20 34 00 00 3b 4e 00 44 |ite 3 to| 4..;N.D|
|00003c20| 00 ce 00 00 3b ee 30 20 | 70 65 72 63 65 6e 74 3a |....;.0 |percent:|
|00003c30| 0d 0d 73 65 74 20 74 68 | 65 20 62 6c 65 6e 64 20 |..set th|e blend |
|00003c40| 6f 66 20 73 70 72 69 74 | 65 20 33 20 74 6f 20 34 |of sprit|e 3 to 4|
|00003c50| 30 0d 0d 45 78 61 6d 70 | 6c 65 20 32 3a 0d 0d 54 |0..Examp|le 2:..T|
|00003c60| 68 69 73 20 73 74 00 00 | 3b 9a 00 44 00 01 00 00 |his st..|;..D....|
|00003c70| 3c 3a 61 74 65 6d 65 6e | 74 20 64 69 73 70 6c 61 |<:atemen|t displa|
|00003c80| 79 73 20 74 68 65 20 62 | 6c 65 6e 64 20 76 61 6c |ys the b|lend val|
|00003c90| 75 65 20 6f 66 20 73 70 | 72 69 74 65 20 33 20 69 |ue of sp|rite 3 i|
|00003ca0| 6e 20 74 68 65 20 6d 65 | 73 73 61 67 65 20 77 69 |n the me|ssage wi|
|00003cb0| 6e 64 00 00 3b e6 00 44 | 00 01 ff ff ff ff 6f 77 |nd..;..D|......ow|
|00003cc0| 3a 20 0d 0d 70 75 74 20 | 74 68 65 20 62 6c 65 6e |: ..put |the blen|
|00003cd0| 64 20 6f 66 20 73 70 72 | 69 74 65 20 33 0d 00 00 |d of spr|ite 3...|
|00003ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d00| 00 00 00 1a 00 22 00 00 | 02 64 00 00 3c a8 00 a5 |....."..|.d..<...|
|00003d10| 00 00 3b 34 00 00 00 03 | 00 00 3d 38 00 00 3c a0 |..;4....|..=8..<.|
|00003d20| 00 00 00 00 00 44 00 ce | 00 00 3c f4 54 68 69 73 |.....D..|..<.This|
|00003d30| 20 73 74 61 74 65 6d 65 | 6e 74 20 61 73 73 69 67 | stateme|nt assig|
|00003d40| 6e 73 20 74 68 65 20 76 | 65 72 74 69 63 61 6c 20 |ns the v|ertical |
|00003d50| 63 6f 6f 72 64 69 6e 61 | 74 65 20 6f 66 20 74 68 |coordina|te of th|
|00003d60| 65 20 62 6f 74 74 6f 6d | 20 6f 66 20 00 00 3c a0 |e bottom| of ..<.|
|00003d70| 00 44 00 ce 00 00 3d 40 | 73 70 72 69 74 65 20 6e |.D....=@|sprite n|
|00003d80| 75 6d 62 65 72 65 64 20 | 28 69 20 2b 20 31 29 20 |umbered |(i + 1) |
|00003d90| 74 6f 20 74 68 65 20 76 | 61 72 69 61 62 6c 65 20 |to the v|ariable |
|00003da0| 6e 61 6d 65 64 20 6c 6f | 77 65 73 74 3a 20 0d 0d |named lo|west: ..|
|00003db0| 70 75 74 20 74 68 65 20 | 00 00 3c ec 00 44 00 01 |put the |..<..D..|
|00003dc0| ff ff ff ff 62 6f 74 74 | 6f 6d 20 6f 66 20 73 70 |....bott|om of sp|
|00003dd0| 72 69 74 65 20 28 69 20 | 2b 20 31 29 20 69 6e 74 |rite (i |+ 1) int|
|00003de0| 6f 20 6c 6f 77 65 73 74 | 0d 00 00 00 00 00 00 00 |o lowest|........|
|00003df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e00| 00 00 00 00 00 00 00 00 | 00 1a 00 22 00 00 02 65 |........|..."...e|
|00003e10| 00 00 3d ae 01 35 00 00 | 3c 86 00 00 00 05 00 00 |..=..5..|<.......|
|00003e20| 3e d6 00 00 3d a6 00 00 | 00 00 00 44 00 ce 00 00 |>...=...|...D....|
|00003e30| 3d fa 45 78 61 6d 70 6c | 65 20 31 3a 0d 54 68 65 |=.Exampl|e 1:.The|
|00003e40| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 73 74 61 74 65 | followi|ng state|
|00003e50| 6d 65 6e 74 20 73 65 74 | 73 20 74 68 65 20 62 75 |ment set|s the bu|
|00003e60| 74 74 6f 6e 53 74 79 6c | 65 20 70 72 6f 70 65 72 |ttonStyl|e proper|
|00003e70| 74 79 00 00 3d a6 00 44 | 00 ce 00 00 3e 46 20 74 |ty..=..D|....>F t|
|00003e80| 6f 20 31 20 28 64 69 61 | 6c 6f 67 20 73 74 79 6c |o 1 (dia|log styl|
|00003e90| 65 2e 29 0d 0d 73 65 74 | 20 74 68 65 20 62 75 74 |e.)..set| the but|
|00003ea0| 74 6f 6e 53 74 79 6c 65 | 20 74 6f 20 31 0d 0d 45 |tonStyle| to 1..E|
|00003eb0| 78 61 6d 70 6c 65 20 32 | 3a 0d 54 68 69 73 00 00 |xample 2|:.This..|
|00003ec0| 3d f2 00 44 00 01 00 00 | 3e 92 20 73 74 61 74 65 |=..D....|>. state|
|00003ed0| 6d 65 6e 74 20 72 65 6d | 65 6d 62 65 72 73 20 74 |ment rem|embers t|
|00003ee0| 68 65 20 63 75 72 72 65 | 6e 74 20 73 65 74 74 69 |he curre|nt setti|
|00003ef0| 6e 67 20 6f 66 20 74 68 | 65 20 62 75 74 74 6f 6e |ng of th|e button|
|00003f00| 53 74 79 6c 65 20 70 72 | 6f 70 00 00 3e 3e 00 44 |Style pr|op..>>.D|
|00003f10| 00 01 00 00 3e de 65 72 | 74 79 20 62 79 20 70 75 |....>.er|ty by pu|
|00003f20| 74 74 69 6e 67 20 74 68 | 65 20 63 75 72 72 65 6e |tting th|e curren|
|00003f30| 74 20 62 75 74 74 6f 6e | 53 74 79 6c 65 20 69 6e |t button|Style in|
|00003f40| 20 74 68 65 20 76 61 72 | 69 61 62 6c 65 20 62 75 | the var|iable bu|
|00003f50| 74 74 6f 6e 53 74 00 00 | 3e 8a 00 44 00 01 ff ff |ttonSt..|>..D....|
|00003f60| ff ff 79 6c 65 56 61 6c | 75 65 3a 0d 0d 70 75 74 |..yleVal|ue:..put|
|00003f70| 20 74 68 65 20 62 75 74 | 74 6f 6e 53 74 79 6c 65 | the but|tonStyle|
|00003f80| 20 69 6e 74 6f 20 62 75 | 74 74 6f 6e 53 74 79 6c | into bu|ttonStyl|
|00003f90| 65 56 61 6c 75 65 0d 00 | 00 00 00 00 00 00 00 00 |eValue..|........|
|00003fa0| 00 00 00 00 00 00 00 1a | 00 22 00 00 02 66 00 00 |........|."...f..|
|00003fb0| 3f 4c 01 99 00 00 3d 8c | 00 00 00 07 00 00 41 0c |?L....=.|......A.|
|00003fc0| 00 00 3f 44 00 00 00 00 | 00 44 00 5c 00 00 3f 98 |..?D....|.D.\..?.|
|00003fd0| 45 78 61 6d 70 6c 65 20 | 31 3a 0d 0d 54 68 65 20 |Example |1:..The |
|00003fe0| 66 6f 6c 6c 6f 77 69 6e | 67 20 73 74 61 74 65 6d |followin|g statem|
|00003ff0| 65 6e 74 20 73 65 74 73 | 20 74 68 65 20 68 69 6c |ent sets| the hil|
|00004000| 69 74 65 20 6f 66 20 74 | 68 65 20 62 75 74 74 6f |ite of t|he butto|
|00004010| 00 00 3f 44 00 44 00 5c | 00 00 3f e4 6e 20 63 61 |..?D.D.\|..?.n ca|
|00004020| 73 74 20 6d 65 6d 62 65 | 72 20 6e 61 6d 65 64 20 |st membe|r named |
|00004030| 45 6e 74 65 72 20 42 69 | 64 20 74 6f 20 54 52 55 |Enter Bi|d to TRU|
|00004040| 45 3a 0d 0d 73 65 74 20 | 74 68 65 20 68 69 6c 69 |E:..set |the hili|
|00004050| 74 65 20 6f 66 20 63 61 | 73 74 20 22 00 00 3f 90 |te of ca|st "..?.|
|00004060| 00 44 00 01 00 00 40 30 | 45 6e 74 65 72 20 42 69 |.D....@0|Enter Bi|
|00004070| 64 22 20 74 6f 20 54 52 | 55 45 0d 0d 45 78 61 6d |d" to TR|UE..Exam|
|00004080| 70 6c 65 20 32 3a 0d 0d | 54 68 69 73 20 73 74 61 |ple 2:..|This sta|
|00004090| 74 65 6d 65 6e 74 20 70 | 75 74 73 20 74 68 65 20 |tement p|uts the |
|000040a0| 6e 61 6d 65 20 6f 66 20 | 00 00 3f dc 00 44 00 01 |name of |..?..D..|
|000040b0| 00 00 40 7c 73 6f 75 6e | 64 20 63 61 73 74 20 6d |..@|soun|d cast m|
|000040c0| 65 6d 62 65 72 20 31 33 | 32 20 69 6e 74 6f 20 74 |ember 13|2 into t|
|000040d0| 68 65 20 76 61 72 69 61 | 62 6c 65 20 73 6f 75 6e |he varia|ble soun|
|000040e0| 64 4e 61 6d 65 3a 0d 0d | 70 75 74 20 74 68 65 20 |dName:..|put the |
|000040f0| 6e 61 6d 65 00 00 40 28 | 00 44 00 01 00 00 40 c8 |name..@(|.D....@.|
|00004100| 20 6f 66 20 63 61 73 74 | 20 31 33 32 20 69 6e 74 | of cast| 132 int|
|00004110| 6f 20 73 6f 75 6e 64 4e | 61 6d 65 0d 0d 45 78 61 |o soundN|ame..Exa|
|00004120| 6d 70 6c 65 20 33 3a 0d | 0d 54 68 69 73 20 73 74 |mple 3:.|.This st|
|00004130| 61 74 65 6d 65 6e 74 20 | 64 65 74 65 72 6d 69 6e |atement |determin|
|00004140| 00 00 40 74 00 44 00 01 | 00 00 41 14 65 73 20 77 |..@t.D..|..A.es w|
|00004150| 68 65 74 68 65 72 20 63 | 61 73 74 20 6d 65 6d 62 |hether c|ast memb|
|00004160| 65 72 20 39 20 68 61 73 | 20 61 20 6e 61 6d 65 20 |er 9 has| a name |
|00004170| 61 73 73 69 67 6e 65 64 | 2e 20 0d 0d 69 66 20 73 |assigned|. ..if s|
|00004180| 74 72 69 6e 67 50 28 74 | 68 65 20 6e 00 00 40 c0 |tringP(t|he n..@.|
|00004190| 00 44 00 01 ff ff ff ff | 61 6d 65 20 6f 66 20 63 |.D......|ame of c|
|000041a0| 61 73 74 20 39 29 20 74 | 68 65 6e 20 65 78 69 74 |ast 9) t|hen exit|
|000041b0| 0d 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 1a 00 22 |........|......."|
|000041e0| 00 00 02 69 00 00 41 82 | 01 45 00 00 3f 2a 00 00 |...i..A.|.E..?*..|
|000041f0| 00 06 00 00 42 f6 00 00 | 41 7a 00 00 00 00 00 44 |....B...|Az.....D|
|00004200| 00 ce 00 00 41 ce 45 78 | 61 6d 70 6c 65 20 31 3a |....A.Ex|ample 1:|
|00004210| 0d 0d 54 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |..The fo|llowing |
|00004220| 73 74 61 74 65 6d 65 6e | 74 20 73 77 69 74 63 68 |statemen|t switch|
|00004230| 65 73 20 74 68 65 20 63 | 61 73 74 20 6d 65 6d 62 |es the c|ast memb|
|00004240| 65 72 20 61 73 73 00 00 | 41 7a 00 44 00 ce 00 00 |er ass..|Az.D....|
|00004250| 42 1a 69 67 6e 65 64 20 | 74 6f 20 73 70 72 69 74 |B.igned |to sprit|
|00004260| 65 20 33 20 74 6f 20 63 | 61 73 74 20 6d 65 6d 62 |e 3 to c|ast memb|
|00004270| 65 72 20 6e 75 6d 62 65 | 72 20 33 35 3a 0d 0d 73 |er numbe|r 35:..s|
|00004280| 65 74 20 74 68 65 20 63 | 61 73 74 4e 75 6d 20 6f |et the c|astNum o|
|00004290| 66 20 00 00 41 c6 00 44 | 00 01 00 00 42 66 73 70 |f ..A..D|....Bfsp|
|000042a0| 72 69 74 65 20 33 20 74 | 6f 20 33 35 0d 0d 45 78 |rite 3 t|o 35..Ex|
|000042b0| 61 6d 70 6c 65 20 32 3a | 0d 0d 54 68 69 73 20 73 |ample 2:|..This s|
|000042c0| 74 61 74 65 6d 65 6e 74 | 20 61 73 73 69 67 6e 73 |tatement| assigns|
|000042d0| 20 74 68 65 20 63 61 73 | 74 20 6d 65 6d 62 00 00 | the cas|t memb..|
|000042e0| 42 12 00 44 00 01 00 00 | 42 b2 65 72 20 4e 61 72 |B..D....|B.er Nar|
|000042f0| 72 61 74 6f 72 20 74 6f | 20 73 70 72 69 74 65 20 |rator to| sprite |
|00004300| 31 30 20 62 79 20 73 65 | 74 74 69 6e 67 20 74 68 |10 by se|tting th|
|00004310| 65 20 63 61 73 74 4e 75 | 6d 20 6f 66 20 73 70 72 |e castNu|m of spr|
|00004320| 69 74 65 20 74 6f 20 4e | 61 72 00 00 42 5e 00 44 |ite to N|ar..B^.D|
|00004330| 00 88 00 00 42 fe 72 61 | 74 6f 72 d5 73 20 63 61 |....B.ra|tor.s ca|
|00004340| 73 74 20 6e 75 6d 62 65 | 72 3a 0d 0d 73 65 74 20 |st numbe|r:..set |
|00004350| 74 68 65 20 63 61 73 74 | 4e 75 6d 20 6f 66 20 73 |the cast|Num of s|
|00004360| 70 72 69 74 65 20 31 30 | 20 3d 20 63 61 73 74 20 |prite 10| = cast |
|00004370| 22 4e 61 72 72 61 00 00 | 42 aa 00 44 00 01 ff ff |"Narra..|B..D....|
|00004380| ff ff 74 6f 72 22 0d 00 | 00 00 00 00 00 00 00 00 |..tor"..|........|
|00004390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043c0| 00 00 00 00 00 00 00 1a | 00 22 00 00 02 6a 00 00 |........|."...j..|
|000043d0| 44 04 00 9c 00 00 41 60 | 00 00 00 03 00 00 43 64 |D.....A`|......Cd|
|000043e0| 00 00 43 fc 00 00 43 b0 | 00 44 00 ce ff ff ff ff |..C...C.|.D......|
|000043f0| 79 70 65 20 6f 66 20 63 | 61 73 74 20 34 35 0d 0d |ype of c|ast 45..|
|00004400| 2d 2d 20 23 70 69 63 74 | 75 72 65 0d 00 00 00 00 |-- #pict|ure.....|
|00004410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004430| 00 00 43 fc 00 44 00 ce | 00 00 43 6c 34 35 2c 20 |..C..D..|..Cl45, |
|00004440| 77 68 69 63 68 20 69 73 | 20 61 20 50 49 43 54 20 |which is| a PICT |
|00004450| 69 6d 61 67 65 2c 20 69 | 6e 20 74 68 65 20 6d 65 |image, i|n the me|
|00004460| 73 73 61 67 65 20 77 69 | 6e 64 6f 77 3a 0d 0d 70 |ssage wi|ndow:..p|
|00004470| 75 74 20 74 68 65 20 63 | 61 73 74 54 00 00 00 00 |ut the c|astT....|
|00004480| 00 44 00 01 00 00 43 b8 | 54 68 65 20 66 6f 6c 6c |.D....C.|The foll|
|00004490| 6f 77 69 6e 67 20 73 74 | 61 74 65 6d 65 6e 74 20 |owing st|atement |
|000044a0| 64 69 73 70 6c 61 79 73 | 20 74 68 65 20 74 79 70 |displays| the typ|
|000044b0| 65 20 6f 66 20 63 61 73 | 74 20 6d 65 6d 62 65 72 |e of cas|t member|
|000044c0| 20 6e 75 6d 62 65 72 20 | 00 00 00 00 00 1a 00 22 | number |......."|
|000044d0| 00 00 06 6c 00 00 44 72 | 00 a1 00 00 43 4a 00 00 |...l..Dr|....CJ..|
|000044e0| 00 03 00 00 45 02 00 00 | 44 6a 00 00 00 00 00 44 |....E...|Dj.....D|
|000044f0| 00 ce 00 00 44 be 54 68 | 69 73 20 73 74 61 74 65 |....D.Th|is state|
|00004500| 6d 65 6e 74 20 63 61 75 | 73 65 73 20 74 68 65 20 |ment cau|ses the |
|00004510| 64 69 67 69 74 61 6c 20 | 76 69 64 65 6f 20 63 61 |digital |video ca|
|00004520| 73 74 20 6d 65 6d 62 65 | 72 20 49 6e 74 65 72 76 |st membe|r Interv|
|00004530| 69 65 77 20 74 6f 00 00 | 44 6a 00 44 00 ce 00 00 |iew to..|Dj.D....|
|00004540| 45 0a 20 62 65 20 64 69 | 73 70 6c 61 79 65 64 20 |E. be di|splayed |
|00004550| 69 6e 20 74 68 65 20 74 | 6f 70 20 6c 65 66 74 20 |in the t|op left |
|00004560| 63 6f 72 6e 65 72 20 6f | 66 20 74 68 65 20 73 70 |corner o|f the sp|
|00004570| 72 69 74 65 2e 0d 0d 73 | 65 74 20 74 68 65 20 63 |rite...s|et the c|
|00004580| 65 6e 00 00 44 b6 00 44 | 00 01 ff ff ff ff 74 65 |en..D..D|......te|
|00004590| 72 20 6f 66 20 63 61 73 | 74 20 22 49 6e 74 65 72 |r of cas|t "Inter|
|000045a0| 76 69 65 77 22 20 74 6f | 20 46 41 4c 53 45 0d 00 |view" to| FALSE..|
|000045b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045d0| 00 00 00 1a 00 22 00 00 | 02 6b 00 00 45 78 01 2d |....."..|.k..Ex.-|
|000045e0| 00 00 44 50 00 00 00 05 | 00 00 46 a0 00 00 45 70 |..DP....|..F...Ep|
|000045f0| 00 00 00 00 00 44 00 ce | 00 00 45 c4 45 78 61 6d |.....D..|..E.Exam|
|00004600| 70 6c 65 20 31 3a 0d 0d | 54 68 69 73 20 73 74 61 |ple 1:..|This sta|
|00004610| 74 65 6d 65 6e 74 20 73 | 65 6e 64 73 20 74 68 65 |tement s|ends the|
|00004620| 20 6d 6f 76 69 65 20 74 | 6f 20 61 20 73 70 65 63 | movie t|o a spec|
|00004630| 69 66 69 63 20 66 72 61 | 6d 65 20 69 00 00 45 70 |ific fra|me i..Ep|
|00004640| 00 44 00 ce 00 00 46 10 | 66 20 74 68 65 20 73 74 |.D....F.|f the st|
|00004650| 61 67 65 20 69 73 20 6e | 6f 74 20 63 65 6e 74 65 |age is n|ot cente|
|00004660| 72 65 64 3a 0d 0d 69 66 | 20 74 68 65 20 63 65 6e |red:..if| the cen|
|00004670| 74 65 72 53 74 61 67 65 | 20 3d 20 46 41 4c 53 45 |terStage| = FALSE|
|00004680| 20 74 68 65 6e 20 c2 0d | 00 00 45 bc 00 44 00 01 | then ..|..E..D..|
|00004690| 00 00 46 5c 0d 09 67 6f | 20 74 6f 20 66 72 61 6d |..F\..go| to fram|
|000046a0| 65 20 22 6f 66 66 20 63 | 65 6e 74 65 72 22 20 0d |e "off c|enter" .|
|000046b0| 0d 45 78 61 6d 70 6c 65 | 20 32 3a 0d 0d 54 68 69 |.Example| 2:..Thi|
|000046c0| 73 20 73 74 61 74 65 6d | 65 6e 74 20 63 68 61 6e |s statem|ent chan|
|000046d0| 67 65 73 20 00 00 46 08 | 00 44 00 ff 00 00 46 a8 |ges ..F.|.D....F.|
|000046e0| 74 68 65 20 63 65 6e 74 | 65 72 53 74 61 67 65 20 |the cent|erStage |
|000046f0| 70 72 6f 70 65 72 74 79 | 20 74 6f 20 74 68 65 20 |property| to the |
|00004700| 6f 70 70 6f 73 69 74 65 | 20 6f 66 20 69 74 73 20 |opposite| of its |
|00004710| 63 75 72 72 65 6e 74 20 | 76 61 6c 75 65 3a 0d 0d |current |value:..|
|00004720| 00 00 46 54 00 44 00 01 | ff ff ff ff 73 65 74 20 |..FT.D..|....set |
|00004730| 74 68 65 20 63 65 6e 74 | 65 72 53 74 61 67 65 20 |the cent|erStage |
|00004740| 74 6f 20 28 6e 6f 74 20 | 74 68 65 20 63 65 6e 74 |to (not |the cent|
|00004750| 65 72 53 74 61 67 65 29 | 0d 00 00 00 00 00 00 00 |erStage)|........|
|00004760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004770| 00 1a 00 22 00 00 02 6c | 00 00 47 16 01 92 00 00 |..."...l|..G.....|
|00004780| 45 56 00 00 00 07 00 00 | 48 d6 00 00 47 0e 00 00 |EV......|H...G...|
|00004790| 00 00 00 44 00 ce 00 00 | 47 62 45 78 61 6d 70 6c |...D....|GbExampl|
|000047a0| 65 20 31 3a 0d 0d 54 68 | 69 73 20 73 74 61 74 65 |e 1:..Th|is state|
|000047b0| 6d 65 6e 74 20 64 69 73 | 70 6c 61 79 73 20 74 68 |ment dis|plays th|
|000047c0| 65 20 66 69 72 73 74 20 | 63 68 61 72 61 63 74 65 |e first |characte|
|000047d0| 72 20 6f 66 20 74 68 65 | 20 73 00 00 47 0e 00 44 |r of the| s..G..D|
|000047e0| 00 ce 00 00 47 ae 74 72 | 69 6e 67 20 24 39 2e 30 |....G.tr|ing $9.0|
|000047f0| 30 3a 0d 0d 70 75 74 20 | 63 68 61 72 20 31 20 6f |0:..put |char 1 o|
|00004800| 66 20 22 24 39 2e 30 30 | 22 0d 0d 2d 2d 20 22 24 |f "$9.00|"..-- "$|
|00004810| 22 0d 0d 45 78 61 6d 70 | 6c 65 20 32 3a 0d 0d 54 |"..Examp|le 2:..T|
|00004820| 68 69 73 20 73 74 00 00 | 47 5a 00 44 00 01 00 00 |his st..|GZ.D....|
|00004830| 47 fa 61 74 65 6d 65 6e | 74 20 64 69 73 70 6c 61 |G.atemen|t displa|
|00004840| 79 73 20 74 68 65 20 65 | 6e 74 69 72 65 20 73 74 |ys the e|ntire st|
|00004850| 72 69 6e 67 20 24 39 2e | 30 30 3a 0d 0d 70 75 74 |ring $9.|00:..put|
|00004860| 20 63 68 61 72 20 31 20 | 74 6f 20 35 20 6f 66 20 | char 1 |to 5 of |
|00004870| 22 24 00 00 47 a6 00 44 | 00 01 00 00 48 46 39 2e |"$..G..D|....HF9.|
|00004880| 30 30 22 0d 0d 2d 2d 20 | 22 24 39 2e 30 30 22 0d |00"..-- |"$9.00".|
|00004890| 0d 45 78 61 6d 70 6c 65 | 20 33 3a 0d 0d 54 68 69 |.Example| 3:..Thi|
|000048a0| 73 20 73 74 61 74 65 6d | 65 6e 74 20 63 68 61 6e |s statem|ent chan|
|000048b0| 67 65 73 20 74 68 65 20 | 66 69 72 73 74 20 00 00 |ges the |first ..|
|000048c0| 47 f2 00 44 00 16 00 00 | 48 92 66 69 76 65 20 63 |G..D....|H.five c|
|000048d0| 68 61 72 61 63 74 65 72 | 73 20 6f 66 20 74 68 65 |haracter|s of the|
|000048e0| 20 73 65 63 6f 6e 64 20 | 77 6f 72 64 20 6f 66 20 | second |word of |
|000048f0| 74 68 65 20 74 68 69 72 | 64 20 6c 69 6e 65 20 6f |the thir|d line o|
|00004900| 66 20 61 20 74 65 78 74 | 20 63 00 00 48 3e 00 44 |f a text| c..H>.D|
|00004910| 00 01 00 00 48 de 61 73 | 74 20 6d 65 6d 62 65 72 |....H.as|t member|
|00004920| 3a 0d 0d 70 75 74 20 22 | 3f 3f 3f 3f 3f 22 20 69 |:..put "|?????" i|
|00004930| 6e 74 6f 20 63 68 61 72 | 20 31 20 74 6f 20 35 20 |nto char| 1 to 5 |
|00004940| 6f 66 20 77 6f 72 64 20 | 32 20 6f 66 20 6c 69 6e |of word |2 of lin|
|00004950| 65 20 33 20 c2 0d 00 00 | 48 8a 00 44 00 01 ff ff |e 3 ....|H..D....|
|00004960| ff ff 0d 09 6f 66 20 66 | 69 65 6c 64 20 22 71 75 |....of f|ield "qu|
|00004970| 69 7a 22 0d 00 00 00 00 | 00 00 00 00 00 00 00 00 |iz".....|........|
|00004980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049a0| 00 00 00 00 00 00 00 1a | 00 22 00 00 02 6d 00 00 |........|."...m..|
|000049b0| 4c 44 02 9a 00 00 46 f4 | 00 00 00 0b 00 00 49 44 |LD....F.|......ID|
|000049c0| 00 00 4c 3c 00 00 49 90 | 00 44 00 ce ff ff ff ff |..L<..I.|.D......|
|000049d0| 50 54 59 20 74 68 65 6e | 20 70 75 74 20 22 54 52 |PTY then| put "TR|
|000049e0| 55 45 22 0d 0d 2d 2d 20 | 31 0d 00 00 00 00 00 00 |UE"..-- |1.......|
|000049f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a10| 00 00 49 dc 00 44 00 ce | 00 00 49 4c 68 61 73 20 |..I..D..|..ILhas |
|00004a20| 61 20 74 77 65 6e 74 69 | 65 74 68 20 63 68 61 72 |a twenti|eth char|
|00004a30| 61 63 74 65 72 3a 0d 0d | 69 66 20 63 68 61 72 73 |acter:..|if chars|
|00004a40| 20 28 22 4d 61 63 72 6f | 6d 65 64 69 61 22 2c 20 | ("Macro|media", |
|00004a50| 32 30 2c 20 32 30 29 20 | 3d 20 45 4d 00 00 4a 28 |20, 20) |= EM..J(|
|00004a60| 00 44 00 16 00 00 49 98 | 22 0d 0d 45 78 61 6d 70 |.D....I.|"..Examp|
|00004a70| 6c 65 20 34 3a 0d 0d 54 | 68 69 73 20 73 74 61 74 |le 4:..T|his stat|
|00004a80| 65 6d 65 6e 74 20 74 65 | 73 74 73 20 77 68 65 74 |ement te|sts whet|
|00004a90| 68 65 72 20 74 68 65 20 | 77 6f 72 64 20 4d 61 63 |her the |word Mac|
|00004aa0| 72 6f 6d 65 64 69 61 20 | 00 00 4a 74 00 44 00 01 |romedia |..Jt.D..|
|00004ab0| 00 00 49 e4 74 6f 20 74 | 65 6e 74 68 20 63 68 61 |..I.to t|enth cha|
|00004ac0| 72 61 63 74 65 72 73 2e | 0d 0d 70 75 74 20 63 68 |racters.|..put ch|
|00004ad0| 61 72 73 20 28 22 4d 61 | 63 72 6f 6d 65 64 69 61 |ars ("Ma|cromedia|
|00004ae0| 22 2c 20 36 2c 20 32 30 | 29 0d 0d 2d 2d 20 22 6d |", 6, 20|)..-- "m|
|00004af0| 65 64 69 61 00 00 4a c0 | 00 44 00 01 00 00 4a 30 |edia..J.|.D....J0|
|00004b00| 6f 72 64 20 68 61 73 20 | 6f 6e 6c 79 20 74 65 6e |ord has |only ten|
|00004b10| 20 63 68 61 72 61 63 74 | 65 72 73 2c 20 74 68 65 | charact|ers, the|
|00004b20| 20 72 65 73 75 6c 74 20 | 69 6e 63 6c 75 64 65 73 | result |includes|
|00004b30| 20 6f 6e 6c 79 20 74 68 | 65 20 73 69 78 74 68 20 | only th|e sixth |
|00004b40| 00 00 4b 0c 00 44 00 01 | 00 00 4a 7c 72 6f 75 67 |..K..D..|..J|roug|
|00004b50| 68 20 74 77 65 6e 74 69 | 65 74 68 20 63 68 61 72 |h twenti|eth char|
|00004b60| 61 63 74 65 72 73 20 6f | 66 20 74 68 65 20 77 6f |acters o|f the wo|
|00004b70| 72 64 20 4d 61 63 72 6f | 6d 65 64 69 61 2e 20 42 |rd Macro|media. B|
|00004b80| 65 63 61 75 73 65 20 74 | 68 65 20 77 00 00 4b 58 |ecause t|he w..KX|
|00004b90| 00 44 00 01 00 00 4a c8 | 65 64 69 61 22 0d 0d 45 |.D....J.|edia"..E|
|00004ba0| 78 61 6d 70 6c 65 20 33 | 3a 0d 0d 54 68 69 73 20 |xample 3|:..This |
|00004bb0| 73 74 61 74 65 6d 65 6e | 74 20 74 72 69 65 73 20 |statemen|t tries |
|00004bc0| 74 6f 20 69 64 65 6e 74 | 69 66 79 20 74 68 65 20 |to ident|ify the |
|00004bd0| 73 69 78 74 68 20 74 68 | 00 00 4b a4 00 44 00 01 |sixth th|..K..D..|
|00004be0| 00 00 4b 14 72 73 20 6f | 66 20 74 68 65 20 77 6f |..K.rs o|f the wo|
|00004bf0| 72 64 20 4d 61 63 72 6f | 6d 65 64 69 61 0d 0d 70 |rd Macro|media..p|
|00004c00| 75 74 20 63 68 61 72 73 | 28 22 4d 61 63 72 6f 6d |ut chars|("Macrom|
|00004c10| 65 64 69 61 22 2c 20 36 | 2c 20 31 30 29 0d 0d 2d |edia", 6|, 10)..-|
|00004c20| 2d 20 22 6d 00 00 4b f0 | 00 44 00 01 00 00 4b 60 |- "m..K.|.D....K`|
|00004c30| 65 20 32 3a 0d 0d 54 68 | 69 73 20 73 74 61 74 65 |e 2:..Th|is state|
|00004c40| 6d 65 6e 74 20 69 64 65 | 6e 74 69 66 69 65 73 20 |ment ide|ntifies |
|00004c50| 74 68 65 20 73 69 78 74 | 68 20 74 68 72 6f 75 67 |the sixt|h throug|
|00004c60| 68 20 74 65 6e 74 68 20 | 63 68 61 72 61 63 74 65 |h tenth |characte|
|00004c70| 00 00 4c 3c 00 44 00 01 | 00 00 4b ac 20 77 6f 72 |..L<.D..|..K. wor|
|00004c80| 64 20 4d 61 63 72 6f 6d | 65 64 69 61 3a 0d 0d 70 |d Macrom|edia:..p|
|00004c90| 75 74 20 63 68 61 72 73 | 28 22 4d 61 63 72 6f 6d |ut chars|("Macrom|
|00004ca0| 65 64 69 61 22 2c 20 36 | 2c 20 36 29 0d 0d 2d 2d |edia", 6|, 6)..--|
|00004cb0| 20 22 6d 22 0d 0d 45 78 | 61 6d 70 6c 00 00 00 00 | "m"..Ex|ampl....|
|00004cc0| 00 44 00 01 00 00 4b f8 | 45 78 61 6d 70 6c 65 20 |.D....K.|Example |
|00004cd0| 31 3a 0d 0d 54 68 69 73 | 20 73 74 61 74 65 6d 65 |1:..This| stateme|
|00004ce0| 6e 74 20 69 64 65 6e 74 | 69 66 69 65 73 20 74 68 |nt ident|ifies th|
|00004cf0| 65 20 73 69 78 74 68 20 | 63 68 61 72 61 63 74 65 |e sixth |characte|
|00004d00| 72 20 69 6e 20 74 68 65 | 00 00 00 00 00 1a 00 22 |r in the|......."|
|00004d10| 00 00 02 6e 00 00 4c b2 | 01 0b 00 00 49 2a 00 00 |...n..L.|....I*..|
|00004d20| 00 05 00 00 4d da 00 00 | 4c aa 00 00 00 00 00 44 |....M...|L......D|
|00004d30| 00 ce 00 00 4c fe 45 78 | 61 6d 70 6c 65 20 31 3a |....L.Ex|ample 1:|
|00004d40| 0d 0d 54 68 69 73 20 73 | 74 61 74 65 6d 65 6e 74 |..This s|tatement|
|00004d50| 20 64 69 73 70 6c 61 79 | 73 20 74 68 65 20 41 53 | display|s the AS|
|00004d60| 43 49 49 20 63 6f 64 65 | 20 6e 75 6d 62 65 72 20 |CII code| number |
|00004d70| 66 6f 72 20 74 68 00 00 | 4c aa 00 44 00 ce 00 00 |for th..|L..D....|
|00004d80| 4d 4a 65 20 6c 65 74 74 | 65 72 20 41 3a 0d 0d 70 |MJe lett|er A:..p|
|00004d90| 75 74 20 63 68 61 72 54 | 6f 4e 75 6d 28 22 41 22 |ut charT|oNum("A"|
|00004da0| 29 0d 0d 2d 2d 20 36 35 | 0d 0d 45 78 61 6d 70 6c |)..-- 65|..Exampl|
|00004db0| 65 20 32 3a 0d 0d 54 68 | 69 73 20 73 74 61 74 65 |e 2:..Th|is state|
|00004dc0| 6d 65 00 00 4c f6 00 44 | 00 01 00 00 4d 96 6e 74 |me..L..D|....M.nt|
|00004dd0| 20 63 68 65 63 6b 73 20 | 77 68 65 74 68 65 72 20 | checks |whether |
|00004de0| 30 20 69 73 20 74 68 65 | 20 41 53 43 49 49 20 63 |0 is the| ASCII c|
|00004df0| 6f 64 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 74 68 |ode numb|er of th|
|00004e00| 65 20 63 68 61 72 61 63 | 74 65 72 20 61 73 00 00 |e charac|ter as..|
|00004e10| 4d 42 00 44 00 01 00 00 | 4d e2 73 69 67 6e 65 64 |MB.D....|M.signed|
|00004e20| 20 74 6f 20 74 68 65 20 | 76 61 72 69 61 62 6c 65 | to the |variable|
|00004e30| 20 6e 65 78 74 43 68 61 | 72 3a 0d 0d 69 66 20 63 | nextCha|r:..if c|
|00004e40| 68 61 72 54 6f 4e 75 6d | 28 6e 65 78 74 43 68 61 |harToNum|(nextCha|
|00004e50| 72 29 20 3d 20 30 20 74 | 68 65 00 00 4d 8e 00 44 |r) = 0 t|he..M..D|
|00004e60| 00 01 ff ff ff ff 6e 20 | 66 6f 75 6e 64 4e 55 4c |......n |foundNUL|
|00004e70| 0d 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ea0| 00 00 00 00 00 00 00 00 | 00 00 00 1a 00 22 00 00 |........|....."..|
|00004eb0| 02 6f 00 00 4e 50 01 54 | 00 00 4c 90 00 00 00 06 |.o..NP.T|..L.....|
|00004ec0| 00 00 4f c4 00 00 4e 48 | 00 00 00 00 00 44 00 ce |..O...NH|.....D..|
|00004ed0| 00 00 4e 9c 45 78 61 6d | 70 6c 65 20 31 3a 0d 0d |..N.Exam|ple 1:..|
|00004ee0| 54 68 69 73 20 73 74 61 | 74 65 6d 65 6e 74 20 73 |This sta|tement s|
|00004ef0| 65 74 73 20 74 68 65 20 | 63 68 65 63 6b 42 6f 78 |ets the |checkBox|
|00004f00| 41 63 63 65 73 73 20 70 | 72 6f 70 65 72 74 79 20 |Access p|roperty |
|00004f10| 74 6f 20 31 00 00 4e 48 | 00 44 00 ce 00 00 4e e8 |to 1..NH|.D....N.|
|00004f20| 2c 20 77 68 69 63 68 20 | 6c 65 74 73 20 74 68 65 |, which |lets the|
|00004f30| 20 75 73 65 72 20 63 6c | 69 63 6b 20 63 68 65 63 | user cl|ick chec|
|00004f40| 6b 62 6f 78 65 73 20 61 | 6e 64 20 72 61 64 69 6f |kboxes a|nd radio|
|00004f50| 20 62 75 74 74 6f 6e 73 | 20 6f 6e 20 62 75 74 20 | buttons| on but |
|00004f60| 00 00 4e 94 00 44 00 01 | 00 00 4f 34 6e 6f 74 20 |..N..D..|..O4not |
|00004f70| 6f 66 66 3a 0d 0d 73 65 | 74 20 74 68 65 20 63 68 |off:..se|t the ch|
|00004f80| 65 63 6b 42 6f 78 41 63 | 63 65 73 73 20 74 6f 20 |eckBoxAc|cess to |
|00004f90| 31 0d 0d 45 78 61 6d 70 | 6c 65 20 32 3a 0d 0d 54 |1..Examp|le 2:..T|
|00004fa0| 68 69 73 20 73 74 61 74 | 65 6d 65 6e 00 00 4e e0 |his stat|emen..N.|
|00004fb0| 00 44 00 01 00 00 4f 80 | 74 20 72 65 63 6f 72 64 |.D....O.|t record|
|00004fc0| 73 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 73 65 |s the cu|rrent se|
|00004fd0| 74 74 69 6e 67 20 6f 66 | 20 74 68 65 20 63 68 65 |tting of| the che|
|00004fe0| 63 6b 42 6f 78 41 63 63 | 65 73 73 20 70 72 6f 70 |ckBoxAcc|ess prop|
|00004ff0| 65 72 74 79 20 62 79 20 | 00 00 4f 2c 00 44 00 01 |erty by |..O,.D..|
|00005000| 00 00 4f cc 70 75 74 74 | 69 6e 67 20 74 68 65 20 |..O.putt|ing the |
|00005010| 76 61 6c 75 65 20 69 6e | 20 74 68 65 20 76 61 72 |value in| the var|
|00005020| 69 61 62 6c 65 20 6f 6c | 64 41 63 63 65 73 73 3a |iable ol|dAccess:|
|00005030| 0d 0d 70 75 74 20 74 68 | 65 20 63 68 65 63 6b 42 |..put th|e checkB|
|00005040| 6f 78 41 63 00 00 4f 78 | 00 44 00 01 ff ff ff ff |oxAc..Ox|.D......|
|00005050| 63 65 73 73 20 69 6e 74 | 6f 20 6f 6c 64 41 63 63 |cess int|o oldAcc|
|00005060| 65 73 73 0d 00 00 00 00 | 00 00 00 00 00 00 00 00 |ess.....|........|
|00005070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005080| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005090| 00 00 00 00 00 1a 00 22 | 00 00 02 70 00 00 50 3a |......."|...p..P:|
|000050a0| 01 48 00 00 4e 2e 00 00 | 00 06 00 00 51 ae 00 00 |.H..N...|....Q...|
|000050b0| 50 32 00 00 00 00 00 44 | 00 ce 00 00 50 86 45 78 |P2.....D|....P.Ex|
|000050c0| 61 6d 70 6c 65 20 31 3a | 0d 0d 54 68 69 73 20 73 |ample 1:|..This s|
|000050d0| 74 61 74 65 6d 65 6e 74 | 20 73 65 74 73 20 74 68 |tatement| sets th|
|000050e0| 65 20 63 68 65 63 6b 42 | 6f 78 54 79 70 65 20 70 |e checkB|oxType p|
|000050f0| 72 6f 70 65 72 74 79 20 | 74 6f 20 31 2c 20 00 00 |roperty |to 1, ..|
|00005100| 50 32 00 44 00 ce 00 00 | 50 d2 77 68 69 63 68 20 |P2.D....|P.which |
|00005110| 61 20 62 6c 61 63 6b 20 | 72 65 63 74 61 6e 67 6c |a black |rectangl|
|00005120| 65 20 69 6e 20 63 68 65 | 63 6b 62 6f 78 65 73 20 |e in che|ckboxes |
|00005130| 77 68 65 6e 20 74 68 65 | 20 75 73 65 72 20 63 6c |when the| user cl|
|00005140| 69 63 6b 73 20 74 68 65 | 6d 2e 00 00 50 7e 00 44 |icks the|m...P~.D|
|00005150| 00 01 00 00 51 1e 0d 0d | 73 65 74 20 74 68 65 20 |....Q...|set the |
|00005160| 63 68 65 63 6b 42 6f 78 | 54 79 70 65 20 74 6f 20 |checkBox|Type to |
|00005170| 31 0d 0d 45 78 61 6d 70 | 6c 65 20 32 3a 0d 0d 54 |1..Examp|le 2:..T|
|00005180| 68 69 73 20 73 74 61 74 | 65 6d 65 6e 74 20 72 65 |his stat|ement re|
|00005190| 63 6f 72 64 73 20 00 00 | 50 ca 00 44 00 01 00 00 |cords ..|P..D....|
|000051a0| 51 6a 74 68 65 20 63 75 | 72 72 65 6e 74 20 73 65 |Qjthe cu|rrent se|
|000051b0| 74 74 69 6e 67 20 6f 66 | 20 74 68 65 20 63 68 65 |tting of| the che|
|000051c0| 63 6b 42 6f 78 54 79 70 | 65 20 70 72 6f 70 65 72 |ckBoxTyp|e proper|
|000051d0| 74 79 20 62 79 20 70 75 | 74 74 69 6e 67 20 74 68 |ty by pu|tting th|
|000051e0| 65 20 00 00 51 16 00 44 | 00 01 00 00 51 b6 76 61 |e ..Q..D|....Q.va|
|000051f0| 6c 75 65 20 69 6e 20 74 | 68 65 20 76 61 72 69 61 |lue in t|he varia|
|00005200| 62 6c 65 20 6f 6c 64 42 | 6f 78 54 79 70 65 3a 0d |ble oldB|oxType:.|
|00005210| 0d 70 75 74 20 74 68 65 | 20 63 68 65 63 6b 42 6f |.put the| checkBo|
|00005220| 78 54 79 70 65 20 69 6e | 74 6f 20 6f 6c 64 00 00 |xType in|to old..|
|00005230| 51 62 00 44 00 01 ff ff | ff ff 42 6f 78 54 79 70 |Qb.D....|..BoxTyp|
|00005240| 65 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |e.......|........|
|00005250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 1a |........|........|
|00005280| 00 22 00 00 02 71 00 00 | 52 24 01 6f 00 00 50 18 |."...q..|R$.o..P.|
|00005290| 00 00 00 06 00 00 53 98 | 00 00 52 1c 00 00 00 00 |......S.|..R.....|
|000052a0| 00 44 00 ce 00 00 52 70 | 54 68 69 73 20 68 61 6e |.D....Rp|This han|
|000052b0| 64 6c 65 72 20 75 6e 63 | 68 65 63 6b 73 20 61 6e |dler unc|hecks an|
|000052c0| 79 20 69 74 65 6d 73 20 | 74 68 61 74 20 61 72 65 |y items |that are|
|000052d0| 20 63 68 65 63 6b 65 64 | 20 69 6e 20 74 68 65 20 | checked| in the |
|000052e0| 63 75 73 74 6f 6d 20 6d | 00 00 52 1c 00 44 00 ce |custom m|..R..D..|
|000052f0| 00 00 52 bc 65 6e 75 20 | 73 70 65 63 69 66 69 65 |..R.enu |specifie|
|00005300| 64 20 62 79 20 74 68 65 | 20 61 72 67 75 6d 65 6e |d by the| argumen|
|00005310| 74 20 74 68 65 4d 65 6e | 75 2e 20 46 6f 72 20 65 |t theMen|u. For e|
|00005320| 78 61 6d 70 6c 65 2c 20 | 75 6e 43 68 65 63 6b 20 |xample, |unCheck |
|00005330| 28 d2 46 6f 00 00 52 68 | 00 44 00 01 00 00 53 08 |(.Fo..Rh|.D....S.|
|00005340| 72 6d 61 74 d3 29 20 75 | 6e 63 68 65 63 6b 73 20 |rmat.) u|nchecks |
|00005350| 61 6c 6c 20 74 68 65 20 | 69 74 65 6d 73 20 69 6e |all the |items in|
|00005360| 20 74 68 65 20 46 6f 72 | 6d 61 74 20 6d 65 6e 75 | the For|mat menu|
|00005370| 2e 0d 0d 6f 6e 20 75 6e | 43 68 65 63 6b 20 74 68 |...on un|Check th|
|00005380| 00 00 52 b4 00 44 00 01 | 00 00 53 54 65 4d 65 6e |..R..D..|..STeMen|
|00005390| 75 0d 0d 09 70 75 74 20 | 74 68 65 20 6e 75 6d 62 |u...put |the numb|
|000053a0| 65 72 20 6f 66 20 6d 65 | 6e 75 49 74 65 6d 73 20 |er of me|nuItems |
|000053b0| 6f 66 20 6d 65 6e 75 20 | 74 68 65 4d 65 6e 75 20 |of menu |theMenu |
|000053c0| 69 6e 74 6f 20 6e 0d 0d | 09 72 65 70 00 00 53 00 |into n..|.rep..S.|
|000053d0| 00 44 00 01 00 00 53 a0 | 65 61 74 20 77 69 74 68 |.D....S.|eat with|
|000053e0| 20 69 20 3d 20 31 20 74 | 6f 20 6e 0d 0d 09 09 73 | i = 1 t|o n....s|
|000053f0| 65 74 20 74 68 65 20 63 | 68 65 63 6b 4d 61 72 6b |et the c|heckMark|
|00005400| 20 6f 66 20 6d 65 6e 75 | 49 74 65 6d 20 69 20 6f | of menu|Item i o|
|00005410| 66 20 6d 65 6e 75 20 c2 | 00 00 53 4c 00 44 00 01 |f menu .|..SL.D..|
|00005420| ff ff ff ff 0d 0d 09 09 | 74 68 65 4d 65 6e 75 20 |........|theMenu |
|00005430| 74 6f 20 46 41 4c 53 45 | 0d 0d 09 65 6e 64 20 72 |to FALSE|...end r|
|00005440| 65 70 65 61 74 0d 0d 65 | 6e 64 20 75 6e 43 68 65 |epeat..e|nd unChe|
|00005450| 63 6b 0d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ck......|........|
|00005460| 00 00 00 00 00 00 00 00 | 00 1a 00 22 00 00 02 72 |........|..."...r|
|00005470| 00 00 54 0e 01 cc 00 00 | 52 02 00 00 00 08 00 00 |..T.....|R.......|
|00005480| 56 1a 00 00 54 06 00 00 | 00 00 00 44 00 ce 00 00 |V...T...|...D....|
|00005490| 54 5a 49 66 20 79 6f 75 | 20 69 6e 69 74 69 61 6c |TZIf you| initial|
|000054a0| 69 7a 65 20 61 20 67 6c | 6f 62 61 6c 20 76 61 72 |ize a gl|obal var|
|000054b0| 69 61 62 6c 65 20 77 69 | 74 68 20 61 20 73 74 72 |iable wi|th a str|
|000054c0| 69 6e 67 20 6f 72 20 76 | 61 6c 75 65 2c 20 0d 0d |ing or v|alue, ..|
|000054d0| 67 6c 00 00 54 06 00 44 | 00 ce 00 00 54 a6 6f 62 |gl..T..D|....T.ob|
|000054e0| 61 6c 20 66 6f 6f 0d 0d | 70 75 74 20 22 44 69 72 |al foo..|put "Dir|
|000054f0| 65 63 74 6f 72 22 20 69 | 6e 74 6f 20 66 6f 6f 0d |ector" i|nto foo.|
|00005500| 0d 54 68 65 20 67 6c 6f | 62 61 6c 20 76 61 72 69 |.The glo|bal vari|
|00005510| 61 62 6c 65 20 66 6f 6f | 20 63 6f 6e 74 61 00 00 |able foo| conta..|
|00005520| 54 52 00 44 00 01 00 00 | 54 f2 69 6e 73 20 74 68 |TR.D....|T.ins th|
|00005530| 65 20 73 74 72 69 6e 67 | 20 44 69 72 65 63 74 6f |e string| Directo|
|00005540| 72 20 75 6e 74 69 6c 20 | 61 6e 6f 74 68 65 72 20 |r until |another |
|00005550| 73 74 72 69 6e 67 20 6f | 72 20 76 61 6c 75 65 20 |string o|r value |
|00005560| 69 73 20 70 75 74 20 69 | 6e 74 00 00 54 9e 00 44 |is put i|nt..T..D|
|00005570| 00 01 00 00 55 3e 6f 20 | 74 68 65 20 67 6c 6f 62 |....U>o |the glob|
|00005580| 61 6c 2c 20 6f 72 20 75 | 6e 74 69 6c 20 74 68 65 |al, or u|ntil the|
|00005590| 20 63 6c 65 61 72 47 6c | 6f 62 61 6c 73 20 63 6f | clearGl|obals co|
|000055a0| 6d 6d 61 6e 64 20 69 73 | 20 69 73 73 75 65 64 2e |mmand is| issued.|
|000055b0| 20 54 68 69 73 20 00 00 | 54 ea 00 44 00 01 00 00 | This ..|T..D....|
|000055c0| 55 8a 63 61 6e 20 62 65 | 20 75 73 65 66 75 6c 20 |U.can be| useful |
|000055d0| 77 68 65 6e 20 69 6e 69 | 74 69 61 6c 69 7a 69 6e |when ini|tializin|
|000055e0| 67 20 67 6c 6f 62 61 6c | 20 76 61 72 69 61 62 6c |g global| variabl|
|000055f0| 65 73 2c 20 6f 72 20 77 | 68 65 6e 20 6f 70 65 6e |es, or w|hen open|
|00005600| 69 6e 00 00 55 36 00 44 | 00 01 00 00 55 d6 67 20 |in..U6.D|....U.g |
|00005610| 61 20 6e 65 77 20 6d 6f | 76 69 65 20 74 68 61 74 |a new mo|vie that|
|00005620| 20 72 65 71 75 69 72 65 | 73 20 61 20 6e 65 77 20 | require|s a new |
|00005630| 73 65 74 20 6f 66 20 67 | 6c 6f 62 61 6c 20 76 61 |set of g|lobal va|
|00005640| 72 69 61 62 6c 65 73 2e | 0d 0d 63 6c 65 61 00 00 |riables.|..clea..|
|00005650| 55 82 00 44 00 01 00 00 | 56 22 72 47 6c 6f 62 61 |U..D....|V"rGloba|
|00005660| 6c 73 20 0d 0d 57 68 65 | 6e 20 74 68 69 73 20 63 |ls ..Whe|n this c|
|00005670| 6f 6d 6d 61 6e 64 20 69 | 73 20 69 73 73 75 65 64 |ommand i|s issued|
|00005680| 2c 20 74 68 65 20 67 6c | 6f 62 61 6c 20 76 61 72 |, the gl|obal var|
|00005690| 69 61 62 6c 65 20 66 6f | 6f 20 00 00 55 ce 00 44 |iable fo|o ..U..D|
|000056a0| 00 01 ff ff ff ff 63 6f | 6e 74 61 69 6e 73 20 30 |......co|ntains 0|
|000056b0| 2e 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056e0| 00 00 00 00 00 00 00 00 | 00 00 00 1a 00 22 00 00 |........|....."..|
|000056f0| 02 73 00 00 56 90 00 7b | 00 00 53 ec 00 00 00 02 |.s..V..{|..S.....|
|00005700| 00 00 56 d4 00 00 56 88 | 00 00 00 00 00 44 00 ce |..V...V.|.....D..|
|00005710| 00 00 56 dc 54 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |..V.The |followin|
|00005720| 67 20 6f 6e 20 6d 6f 75 | 73 65 44 6f 77 6e 20 68 |g on mou|seDown h|
|00005730| 61 6e 64 6c 65 72 20 64 | 69 73 70 6c 61 79 73 20 |andler d|isplays |
|00005740| 74 68 65 20 6c 61 73 74 | 20 6d 6f 75 73 65 20 63 |the last| mouse c|
|00005750| 6c 69 63 6b 00 00 56 88 | 00 44 00 ce ff ff ff ff |lick..V.|.D......|
|00005760| 20 6c 6f 63 61 74 69 6f | 6e 3a 0d 0d 6f 6e 20 6d | locatio|n:..on m|
|00005770| 6f 75 73 65 44 6f 77 6e | 0d 0d 09 70 75 74 20 74 |ouseDown|...put t|
|00005780| 68 65 20 63 6c 69 63 6b | 4c 6f 63 0d 0d 65 6e 64 |he click|Loc..end|
|00005790| 20 6d 6f 75 73 65 44 6f | 77 6e 0d 00 00 00 00 00 | mouseDo|wn......|
|000057a0| 00 00 00 00 00 1a 00 d8 | 00 00 02 74 00 00 58 7a |........|...t..Xz|
|000057b0| 01 3c 00 00 56 6e 00 00 | 00 05 00 00 57 42 00 00 |.<..Vn..|....WB..|
|000057c0| 58 72 00 00 57 8e 00 44 | 00 ce ff ff ff ff 20 74 |Xr..W..D|...... t|
|000057d0| 68 65 20 66 6f 72 65 43 | 6f 6c 6f 72 20 6f 66 20 |he foreC|olor of |
|000057e0| 73 70 72 69 74 65 20 28 | 74 68 65 20 63 6c 69 63 |sprite (|the clic|
|000057f0| 6b 4f 6e 29 20 74 6f 20 | c2 0d 0d 09 72 61 6e 64 |kOn) to |....rand|
|00005800| 6f 6d 28 32 35 35 29 2d | 31 0d 00 00 00 00 00 00 |om(255)-|1.......|
|00005810| 57 da 00 44 00 ce 00 00 | 57 4a 74 68 65 20 6c 61 |W..D....|WJthe la|
|00005820| 73 74 20 61 63 74 69 76 | 65 20 73 70 72 69 74 65 |st activ|e sprite|
|00005830| 20 74 68 61 74 20 77 61 | 73 20 63 6c 69 63 6b 65 | that wa|s clicke|
|00005840| 64 20 74 6f 20 61 20 72 | 61 6e 64 6f 6d 20 63 6f |d to a r|andom co|
|00005850| 6c 6f 72 3a 20 0d 0d 73 | 65 74 00 00 58 26 00 44 |lor: ..s|et..X&.D|
|00005860| 00 01 00 00 57 96 72 6f | 6e 67 20 63 68 6f 69 63 |....W.ro|ng choic|
|00005870| 65 2e 22 0d 0d 45 78 61 | 6d 70 6c 65 20 32 3a 0d |e."..Exa|mple 2:.|
|00005880| 0d 54 68 69 73 20 73 74 | 61 74 65 6d 65 6e 74 20 |.This st|atement |
|00005890| 73 65 74 73 20 74 68 65 | 20 66 6f 72 65 63 6f 6c |sets the| forecol|
|000058a0| 6f 72 20 6f 66 20 00 00 | 58 72 00 44 00 01 00 00 |or of ..|Xr.D....|
|000058b0| 57 e2 61 63 74 69 76 65 | 20 73 70 72 69 74 65 20 |W.active| sprite |
|000058c0| 63 6c 69 63 6b 65 64 3a | 0d 0d 69 66 20 74 68 65 |clicked:|..if the|
|000058d0| 20 63 6c 69 63 6b 4f 6e | 20 3d 20 37 20 74 68 65 | clickOn| = 7 the|
|000058e0| 6e 20 61 6c 65 72 74 20 | 22 53 6f 72 72 79 20 d1 |n alert |"Sorry .|
|000058f0| 20 77 00 00 00 00 00 44 | 00 01 00 00 58 2e 45 78 | w.....D|....X.Ex|
|00005900| 61 6d 70 6c 65 20 31 3a | 0d 0d 54 68 69 73 20 73 |ample 1:|..This s|
|00005910| 74 61 74 65 6d 65 6e 74 | 20 63 68 65 63 6b 73 20 |tatement| checks |
|00005920| 77 68 65 74 68 65 72 20 | 73 70 72 69 74 65 20 37 |whether |sprite 7|
|00005930| 20 77 61 73 20 74 68 65 | 20 6c 61 73 74 20 00 00 | was the| last ..|
|00005940| 00 00 00 1a 00 22 00 00 | 02 76 00 00 58 e8 00 b3 |....."..|.v..X...|
|00005950| 00 00 57 28 00 00 00 03 | 00 00 59 78 00 00 58 e0 |..W(....|..Yx..X.|
|00005960| 00 00 00 00 00 44 00 ce | 00 00 59 34 45 78 61 6d |.....D..|..Y4Exam|
|00005970| 70 6c 65 20 31 3a 0d 0d | 54 68 69 73 20 73 74 61 |ple 1:..|This sta|
|00005980| 74 65 6d 65 6e 74 20 63 | 6c 6f 73 65 73 20 74 68 |tement c|loses th|
|00005990| 65 20 77 69 6e 64 6f 77 | 20 6e 61 6d 65 64 20 50 |e window| named P|
|000059a0| 61 6e 65 6c 3a 0d 0d 63 | 6c 6f 73 65 00 00 58 e0 |anel:..c|lose..X.|
|000059b0| 00 44 00 ce 00 00 59 80 | 20 77 69 6e 64 6f 77 20 |.D....Y.| window |
|000059c0| 22 50 61 6e 65 6c 22 0d | 0d 45 78 61 6d 70 6c 65 |"Panel".|.Example|
|000059d0| 20 32 3a 0d 0d 54 68 69 | 73 20 73 74 61 74 65 6d | 2:..Thi|s statem|
|000059e0| 65 6e 74 20 63 6c 6f 73 | 65 73 20 74 68 65 20 77 |ent clos|es the w|
|000059f0| 69 6e 64 6f 77 20 74 68 | 00 00 59 2c 00 44 00 01 |indow th|..Y,.D..|
|00005a00| ff ff ff ff 61 74 20 69 | 73 20 6e 75 6d 62 65 72 |....at i|s number|
|00005a10| 20 35 20 69 6e 20 74 68 | 65 20 77 69 6e 64 6f 77 | 5 in th|e window|
|00005a20| 20 6c 69 73 74 3a 0d 0d | 63 6c 6f 73 65 20 77 69 | list:..|close wi|
|00005a30| 6e 64 6f 77 20 35 0d 00 | 00 00 00 00 00 00 00 00 |ndow 5..|........|
|00005a40| 00 00 00 00 00 00 00 00 | 00 1a 00 22 00 00 02 78 |........|..."...x|
|00005a50| 00 00 59 ee 01 b6 00 00 | 58 c6 00 00 00 07 00 00 |..Y.....|X.......|
|00005a60| 5b ae 00 00 59 e6 00 00 | 00 00 00 44 00 ce 00 00 |[...Y...|...D....|
|00005a70| 5a 3a 45 78 61 6d 70 6c | 65 20 31 3a 0d 0d 54 68 |Z:Exampl|e 1:..Th|
|00005a80| 69 73 20 73 74 61 74 65 | 6d 65 6e 74 20 63 6c 6f |is state|ment clo|
|00005a90| 73 65 73 20 61 6c 6c 20 | 6f 70 65 6e 20 72 65 73 |ses all |open res|
|00005aa0| 6f 75 72 63 65 20 66 69 | 6c 65 73 3a 0d 0d 63 6c |ource fi|les:..cl|
|00005ab0| 6f 73 00 00 59 e6 00 44 | 00 ce 00 00 5a 86 65 52 |os..Y..D|....Z.eR|
|00005ac0| 65 73 46 69 6c 65 0d 0d | 45 78 61 6d 70 6c 65 20 |esFile..|Example |
|00005ad0| 32 3a 0d 0d 54 68 69 73 | 20 73 74 61 74 65 6d 65 |2:..This| stateme|
|00005ae0| 6e 74 20 63 6c 6f 73 65 | 73 20 74 68 65 20 66 69 |nt close|s the fi|
|00005af0| 6c 65 20 53 70 65 63 69 | 61 6c 20 46 6f 6e 00 00 |le Speci|al Fon..|
|00005b00| 5a 32 00 44 00 01 00 00 | 5a d2 74 73 20 77 68 65 |Z2.D....|Z.ts whe|
|00005b10| 6e 20 69 74 20 69 73 20 | 69 6e 20 74 68 65 20 73 |n it is |in the s|
|00005b20| 61 6d 65 20 66 6f 6c 64 | 65 72 20 61 73 20 74 68 |ame fold|er as th|
|00005b30| 65 20 6d 6f 76 69 65 3a | 0d 0d 63 6c 6f 73 65 52 |e movie:|..closeR|
|00005b40| 65 73 46 69 6c 65 20 22 | 53 70 00 00 5a 7e 00 44 |esFile "|Sp..Z~.D|
|00005b50| 00 01 00 00 5b 1e 65 63 | 69 61 6c 20 46 6f 6e 74 |....[.ec|ial Font|
|00005b60| 73 22 0d 0d 45 78 61 6d | 70 6c 65 20 33 3a 0d 0d |s"..Exam|ple 3:..|
|00005b70| 54 68 69 73 20 73 74 61 | 74 65 6d 65 6e 74 20 63 |This sta|tement c|
|00005b80| 6c 6f 73 65 73 20 74 68 | 65 20 66 69 6c 65 20 53 |loses th|e file S|
|00005b90| 70 65 63 69 61 6c 00 00 | 5a ca 00 44 00 01 00 00 |pecial..|Z..D....|
|00005ba0| 5b 6a 20 46 6f 6e 74 73 | 20 69 6e 20 74 68 65 20 |[j Fonts| in the |
|00005bb0| 66 6f 6c 64 65 72 20 53 | 70 65 63 69 61 6c 20 54 |folder S|pecial T|
|00005bc0| 6f 6f 6c 73 20 6f 6e 20 | 74 68 65 20 73 61 6d 65 |ools on |the same|
|00005bd0| 20 64 69 73 6b 20 61 73 | 20 74 68 65 20 6d 6f 76 | disk as| the mov|
|00005be0| 69 65 00 00 5b 16 00 44 | 00 01 00 00 5b b6 2e 20 |ie..[..D|....[.. |
|00005bf0| 54 68 65 20 64 69 73 6b | 20 69 73 20 69 64 65 6e |The disk| is iden|
|00005c00| 74 69 66 69 65 64 20 62 | 79 20 74 68 65 20 76 61 |tified b|y the va|
|00005c10| 72 69 61 62 6c 65 20 63 | 75 72 72 65 6e 74 44 72 |riable c|urrentDr|
|00005c20| 69 76 65 3a 0d 0d 63 6c | 6f 73 65 52 65 73 00 00 |ive:..cl|oseRes..|
|00005c30| 5b 62 00 44 00 01 ff ff | ff ff 46 69 6c 65 20 63 |[b.D....|..File c|
|00005c40| 75 72 72 65 6e 74 44 72 | 69 76 65 20 26 20 c2 0d |urrentDr|ive & ..|
|00005c50| 0d 09 22 53 70 65 63 69 | 61 6c 20 54 6f 6f 6c 73 |.."Speci|al Tools|
|00005c60| 3a 53 70 65 63 69 61 6c | 20 46 6f 6e 74 73 22 0d |:Special| Fonts".|
|00005c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 1a |........|........|
|00005c80| 00 22 00 00 02 79 00 00 | 5c 24 01 ca 00 00 59 cc |."...y..|\$....Y.|
|00005c90| 00 00 00 08 00 00 5e 30 | 00 00 5c 1c 00 00 00 00 |......^0|..\.....|
|00005ca0| 00 44 00 ce 00 00 5c 70 | 45 78 61 6d 70 6c 65 20 |.D....\p|Example |
|00005cb0| 31 3a 0d 0d 54 68 69 73 | 20 73 74 61 74 65 6d 65 |1:..This| stateme|
|00005cc0| 6e 74 20 63 6c 6f 73 65 | 73 20 61 6c 6c 20 6f 70 |nt close|s all op|
|00005cd0| 65 6e 20 58 6c 69 62 72 | 61 72 79 20 66 69 6c 65 |en Xlibr|ary file|
|00005ce0| 73 3a 0d 0d 63 6c 6f 73 | 00 00 5c 1c 00 44 00 64 |s:..clos|..\..D.d|
|00005cf0| 00 00 5c bc 65 58 6c 69 | 62 0d 0d 45 78 61 6d 70 |..\.eXli|b..Examp|
|00005d00| 6c 65 20 32 3a 0d 0d 54 | 68 69 73 20 73 74 61 74 |le 2:..T|his stat|
|00005d10| 65 6d 65 6e 74 20 63 6c | 6f 73 65 73 20 74 68 65 |ement cl|oses the|
|00005d20| 20 58 6c 69 62 72 61 72 | 79 20 56 69 64 65 6f 44 | Xlibrar|y VideoD|
|00005d30| 69 73 63 20 00 00 5c 68 | 00 44 00 01 00 00 5d 08 |isc ..\h|.D....].|
|00005d40| 58 6c 69 62 72 61 72 79 | 20 77 68 65 6e 20 69 74 |Xlibrary| when it|
|00005d50| 20 69 73 20 69 6e 20 74 | 68 65 20 73 61 6d 65 20 | is in t|he same |
|00005d60| 66 6f 6c 65 72 20 61 73 | 20 74 68 65 20 6d 6f 76 |foler as| the mov|
|00005d70| 69 65 3a 0d 0d 63 6c 6f | 73 65 58 6c 69 62 20 22 |ie:..clo|seXlib "|
|00005d80| 00 00 5c b4 00 44 00 01 | 00 00 5d 54 56 69 64 65 |..\..D..|..]TVide|
|00005d90| 6f 44 69 73 63 20 58 6c | 69 62 72 61 72 79 22 0d |oDisc Xl|ibrary".|
|00005da0| 0d 45 78 61 6d 70 6c 65 | 20 33 3a 0d 0d 54 68 69 |.Example| 3:..Thi|
|00005db0| 73 20 73 74 61 74 65 6d | 65 6e 74 20 63 6c 6f 73 |s statem|ent clos|
|00005dc0| 65 73 20 74 68 65 20 58 | 6c 69 62 72 00 00 5d 00 |es the X|libr..].|
|00005dd0| 00 44 00 64 00 00 5d a0 | 61 72 79 20 54 72 61 6e |.D.d..].|ary Tran|
|00005de0| 73 70 6f 72 74 65 72 20 | 58 4f 62 6a 65 63 74 73 |sporter |XObjects|
|00005df0| 20 69 6e 20 74 68 65 20 | 66 6f 6c 64 65 72 20 4e | in the |folder N|
|00005e00| 65 77 20 58 4f 62 6a 65 | 63 74 73 20 6f 6e 20 74 |ew XObje|cts on t|
|00005e10| 68 65 20 73 61 6d 65 20 | 00 00 5d 4c 00 44 00 01 |he same |..]L.D..|
|00005e20| 00 00 5d ec 64 69 73 6b | 20 61 73 20 74 68 65 20 |..].disk| as the |
|00005e30| 6d 6f 76 69 65 2e 20 54 | 68 65 20 64 69 73 6b 20 |movie. T|he disk |
|00005e40| 69 73 20 69 64 65 6e 74 | 69 66 69 65 64 20 62 79 |is ident|ified by|
|00005e50| 20 74 68 65 20 76 61 72 | 69 61 62 6c 65 20 63 75 | the var|iable cu|
|00005e60| 72 72 65 6e 00 00 5d 98 | 00 44 00 01 00 00 5e 38 |rren..].|.D....^8|
|00005e70| 74 44 72 69 76 65 3a 0d | 0d 63 6c 6f 73 65 58 6c |tDrive:.|.closeXl|
|00005e80| 69 62 20 63 75 72 72 65 | 6e 74 44 72 69 76 65 20 |ib curre|ntDrive |
|00005e90| 26 20 c2 0d 0d 09 22 4e | 65 77 20 58 4f 62 6a 65 |& ...."N|ew XObje|
|00005ea0| 63 74 73 3a 54 72 61 6e | 73 70 6f 72 74 65 72 20 |cts:Tran|sporter |
|00005eb0| 00 00 5d e4 00 44 00 01 | ff ff ff ff 58 4f 62 6a |..]..D..|....XObj|
|00005ec0| 65 63 74 73 22 0d 00 00 | 00 00 00 00 00 00 00 00 |ects"...|........|
|00005ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f00| 00 1a 00 22 00 00 02 7a | 00 00 5e a6 01 8a 00 00 |..."...z|..^.....|
|00005f10| 5c 02 00 00 00 07 00 00 | 60 66 00 00 5e 9e 00 00 |\.......|`f..^...|
|00005f20| 00 00 00 44 00 ce 00 00 | 5e f2 45 78 61 6d 70 6c |...D....|^.Exampl|
|00005f30| 65 20 31 3a 0d 0d 54 68 | 69 73 20 73 74 61 74 65 |e 1:..Th|is state|
|00005f40| 6d 65 6e 74 20 6d 61 6b | 65 73 20 70 6c 61 79 69 |ment mak|es playi|
|00005f50| 6e 67 20 74 68 65 20 73 | 65 67 6d 65 6e 74 20 d2 |ng the s|egment .|
|00005f60| 46 75 6c 6c 20 63 6f 6c | 6f 72 00 00 5e 9e 00 44 |Full col|or..^..D|
|00005f70| 00 ce 00 00 5f 3e d3 20 | 64 65 70 65 6e 64 65 6e |...._>. |dependen|
|00005f80| 74 20 6f 6e 20 77 68 65 | 74 68 65 72 20 74 68 65 |t on whe|ther the|
|00005f90| 20 6d 6f 6e 69 74 6f 72 | 20 63 6f 6c 6f 72 20 64 | monitor| color d|
|00005fa0| 65 70 74 68 20 69 73 20 | 73 65 74 20 74 6f 20 32 |epth is |set to 2|
|00005fb0| 35 36 20 63 6f 6c 00 00 | 5e ea 00 44 00 01 00 00 |56 col..|^..D....|
|00005fc0| 5f 8a 6f 72 73 3a 20 0d | 0d 69 66 20 74 68 65 20 |_.ors: .|.if the |
|00005fd0| 63 6f 6c 6f 72 44 65 70 | 74 68 20 3d 20 38 20 74 |colorDep|th = 8 t|
|00005fe0| 68 65 6e 20 70 6c 61 79 | 20 6d 6f 76 69 65 20 22 |hen play| movie "|
|00005ff0| 46 75 6c 6c 20 63 6f 6c | 6f 72 22 0d 0d 45 78 61 |Full col|or"..Exa|
|00006000| 6d 70 00 00 5f 36 00 44 | 00 01 00 00 5f d6 6c 65 |mp.._6.D|...._.le|
|00006010| 20 32 3a 0d 0d 54 68 69 | 73 20 73 74 61 74 65 6d | 2:..Thi|s statem|
|00006020| 65 6e 74 20 75 73 65 73 | 20 74 68 65 20 63 6f 6c |ent uses| the col|
|00006030| 6f 72 51 44 20 66 75 6e | 63 74 69 6f 6e 20 74 6f |orQD fun|ction to|
|00006040| 20 63 68 65 63 6b 20 77 | 68 65 74 68 65 72 00 00 | check w|hether..|
|00006050| 5f 82 00 44 00 01 00 00 | 60 22 20 74 68 65 20 6d |_..D....|`" the m|
|00006060| 6f 6e 69 74 6f 72 20 63 | 61 6e 20 64 69 73 70 6c |onitor c|an displ|
|00006070| 61 79 20 63 6f 6c 6f 72 | 2c 20 61 6e 64 20 74 68 |ay color|, and th|
|00006080| 65 6e 20 73 65 74 73 20 | 74 68 65 20 63 6f 6c 6f |en sets |the colo|
|00006090| 72 20 64 65 70 74 68 20 | 74 6f 00 00 5f ce 00 44 |r depth |to.._..D|
|000060a0| 00 01 00 00 60 6e 20 32 | 35 36 20 63 6f 6c 6f 72 |....`n 2|56 color|
|000060b0| 73 20 69 66 20 69 74 20 | 69 73 3a 0d 0d 69 66 20 |s if it |is:..if |
|000060c0| 74 68 65 20 63 6f 6c 6f | 72 51 44 20 3d 20 54 52 |the colo|rQD = TR|
|000060d0| 55 45 20 74 68 65 6e 20 | 73 65 74 20 74 68 65 20 |UE then |set the |
|000060e0| 63 6f 6c 6f 72 44 00 00 | 60 1a 00 44 00 01 ff ff |colorD..|`..D....|
|000060f0| ff ff 65 70 74 68 20 74 | 6f 20 38 0d 00 00 00 00 |..epth t|o 8.....|
|00006100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006130| 00 00 00 00 00 00 00 1a | 00 22 00 00 02 7b 00 00 |........|."...{..|
|00006140| 60 dc 01 59 00 00 5e 84 | 00 00 00 06 00 00 62 50 |`..Y..^.|......bP|
|00006150| 00 00 60 d4 00 00 00 00 | 00 44 00 ce 00 00 61 28 |..`.....|.D....a(|
|00006160| 45 78 61 6d 70 6c 65 20 | 31 3a 0d 0d 54 68 69 73 |Example |1:..This|
|00006170| 20 73 74 61 74 65 6d 65 | 6e 74 20 63 68 65 63 6b | stateme|nt check|
|00006180| 73 20 77 68 65 74 68 65 | 72 20 74 68 65 20 4d 61 |s whethe|r the Ma|
|00006190| 63 69 6e 74 6f 73 68 20 | 69 73 20 63 6f 6c 6f 72 |cintosh |is color|
|000061a0| 00 00 60 d4 00 44 00 ce | 00 00 61 74 20 63 61 70 |..`..D..|..at cap|
|000061b0| 61 62 6c 65 20 61 6e 64 | 20 70 6c 61 79 73 20 74 |able and| plays t|
|000061c0| 68 65 20 6d 6f 76 69 65 | 20 d2 43 6f 6c 6f 72 20 |he movie| .Color |
|000061d0| 4d 6f 76 69 65 d3 20 69 | 66 20 69 74 20 69 73 3a |Movie. i|f it is:|
|000061e0| 0d 0d 69 66 20 74 68 65 | 20 63 6f 6c 00 00 61 20 |..if the| col..a |
|000061f0| 00 44 00 01 00 00 61 c0 | 6f 72 51 44 20 3d 20 54 |.D....a.|orQD = T|
|00006200| 52 55 45 20 74 68 65 6e | 20 70 6c 61 79 20 6d 6f |RUE then| play mo|
|00006210| 76 69 65 20 22 43 6f 6c | 6f 72 20 4d 6f 76 69 65 |vie "Col|or Movie|
|00006220| 22 0d 0d 45 78 61 6d 70 | 6c 65 20 32 3a 0d 0d 54 |"..Examp|le 2:..T|
|00006230| 68 69 73 20 73 74 61 74 | 00 00 61 6c 00 44 00 01 |his stat|..al.D..|
|00006240| 00 00 62 0c 65 6d 65 6e | 74 20 63 68 65 63 6b 73 |..b.emen|t checks|
|00006250| 20 77 68 65 74 68 65 72 | 20 74 68 65 20 4d 61 63 | whether| the Mac|
|00006260| 69 6e 74 6f 73 68 20 69 | 73 20 63 6f 6c 6f 72 20 |intosh i|s color |
|00006270| 63 61 70 61 62 6c 65 20 | 61 6e 64 20 73 65 74 73 |capable |and sets|
|00006280| 20 74 68 65 00 00 61 b8 | 00 44 00 01 00 00 62 58 | the..a.|.D....bX|
|00006290| 20 63 6f 6c 6f 72 20 64 | 65 70 74 68 20 74 6f 20 | color d|epth to |
|000062a0| 32 35 36 20 63 6f 6c 6f | 72 73 20 69 66 20 69 74 |256 colo|rs if it|
|000062b0| 20 69 73 3a 0d 0d 69 66 | 20 74 68 65 20 63 6f 6c | is:..if| the col|
|000062c0| 6f 72 51 44 20 3d 20 54 | 52 55 45 20 74 68 65 6e |orQD = T|RUE then|
|000062d0| 00 00 62 04 00 44 00 01 | ff ff ff ff 20 73 65 74 |..b..D..|.... set|
|000062e0| 20 74 68 65 20 63 6f 6c | 6f 72 44 65 70 74 68 20 | the col|orDepth |
|000062f0| 74 6f 20 38 0d 00 00 00 | 00 00 00 00 00 00 00 00 |to 8....|........|
|00006300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006320| 00 1a 00 22 00 00 02 7c | 00 00 65 26 02 09 00 00 |..."...||..e&....|
|00006330| 60 ba 00 00 00 09 00 00 | 62 be 00 00 65 1e 00 00 |`.......|b...e...|
|00006340| 63 0a 00 44 00 ce ff ff | ff ff 75 73 65 0d 0d 65 |c..D....|..use..e|
|00006350| 6e 64 0d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |nd......|........|
|00006360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006380| 00 00 00 00 00 00 00 00 | 00 00 00 00 63 56 00 44 |........|....cV.D|
|00006390| 00 ce 00 00 62 c6 20 64 | 6f 43 6f 6d 6d 61 6e 64 |....b. d|oCommand|
|000063a0| 4b 65 79 0d 0d 09 69 66 | 20 28 74 68 65 20 63 6f |Key...if| (the co|
|000063b0| 6d 6d 61 6e 64 44 6f 77 | 6e 29 20 61 6e 64 20 28 |mmandDow|n) and (|
|000063c0| 74 68 65 20 6b 65 79 20 | 3d 20 22 70 22 29 20 74 |the key |= "p") t|
|000063d0| 68 65 6e 20 70 61 00 00 | 63 a2 00 44 00 01 00 00 |hen pa..|c..D....|
|000063e0| 63 12 69 65 0d 0d 09 73 | 65 74 20 74 68 65 20 6b |c.ie...s|et the k|
|000063f0| 65 79 44 6f 77 6e 53 63 | 72 69 70 74 20 74 6f 20 |eyDownSc|ript to |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.